Skip to content

Commit

Permalink
Merge pull request #252 from RichFellure/main
Browse files Browse the repository at this point in the history
Xcode 16 type-check error
  • Loading branch information
willdale authored Oct 1, 2024
2 parents 82c4b1a + 63fe00c commit 01b54e5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ extension CTMultiDataSetProtocol where Self.DataSet.DataPoint: CTStandardDataPoi
public func average() -> Double {

self.dataSets
.compactMap {
$0.dataPoints
.compactMap { dataSet -> Double in
dataSet.dataPoints
.map(\.value)
.reduce(0, +)
.divide(by: Double($0.dataPoints.count))
.divide(by: Double(dataSet.dataPoints.count))
}
.reduce(0, +)
.divide(by: Double(self.dataSets.count))
Expand Down

0 comments on commit 01b54e5

Please sign in to comment.