We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfea3d2 commit 46d203eCopy full SHA for 46d203e
1 file changed
src/FSharp.Stats/Matrix.fs
@@ -549,7 +549,7 @@ module Matrix = begin
549
let meanRowWise (a:matrix) =
550
a
551
|> sumRows
552
- |> Vector.map (fun sum -> sum / (a.NumRows |> float))
+ |> Vector.map (fun sum -> sum / (a.NumCols |> float))
553
554
/// Computes the Column wise mean of a Matrix
555
let meanColumnWise (a:matrix) =
@@ -733,4 +733,4 @@ module MatrixExtension =
733
//
734
// let matrix ll = Matrix.ofSeq ll
735
// let vector l = Vector.ofSeq l
736
-// let rowvec l = RowVector.ofSeq l
+// let rowvec l = RowVector.ofSeq l
0 commit comments