Skip to content

Commit 46d203e

Browse files
authored
fix #119
1 parent bfea3d2 commit 46d203e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/FSharp.Stats/Matrix.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ module Matrix = begin
549549
let meanRowWise (a:matrix) =
550550
a
551551
|> sumRows
552-
|> Vector.map (fun sum -> sum / (a.NumRows |> float))
552+
|> Vector.map (fun sum -> sum / (a.NumCols |> float))
553553

554554
/// Computes the Column wise mean of a Matrix
555555
let meanColumnWise (a:matrix) =
@@ -733,4 +733,4 @@ module MatrixExtension =
733733
//
734734
// let matrix ll = Matrix.ofSeq ll
735735
// let vector l = Vector.ofSeq l
736-
// let rowvec l = RowVector.ofSeq l
736+
// let rowvec l = RowVector.ofSeq l

0 commit comments

Comments
 (0)