FSharp.Stats icon indicating copy to clipboard operation
FSharp.Stats copied to clipboard

[BUG] Seq.weightedMean returns a function

Open kevmal opened this issue 9 months ago • 0 comments

The signature for Seq.weightedMean is off. For example:

#r "nuget:FSharp.Stats"
open FSharp.Stats

let values = [1.0; 2.0; 3.0; 4.0; 5.0]
let weights = [1.0;2.0;1.0;2.0;1.0]
Seq.weightedMean weights values

Result:

val values: float list = [1.0; 2.0; 3.0; 4.0; 5.0]
val weights: float list = [1.0; 2.0; 1.0; 2.0; 1.0]
val it: (float -> float)

Expecting a float.

kevmal avatar May 09 '24 18:05 kevmal