Skip to content

Commit

Permalink
Merge pull request #1 from RichFellure/Xcode16TypeCheckFix
Browse files Browse the repository at this point in the history
Xcode 16 type check fix
  • Loading branch information
RichFellure authored Aug 1, 2024
2 parents 8494b20 + 9006c3f commit 63fe00c
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 63fe00c

Please sign in to comment.