math.matrices: rename for consistency

Getting the sample cov matrix is actually much more common than getting
the population one.
windows-high-dpi
Björn Lindqvist 2018-02-23 23:47:55 +01:00
parent 780bbd49cf
commit 97d9cee732
2 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ CONSTANT: test-points {
{ 23+59/147 6+15/49 27+17/49 } { 23+59/147 6+15/49 27+17/49 }
} }
} [ } [
test-points cov-matrix test-points population-cov-matrix
] unit-test ] unit-test
{ {

View File

@ -222,7 +222,7 @@ ERROR: negative-power-matrix m n ;
: cov-matrix-ddof ( matrix ddof -- cov ) : cov-matrix-ddof ( matrix ddof -- cov )
'[ _ cov-ddof ] cartesian-matrix-column-map ; inline '[ _ cov-ddof ] cartesian-matrix-column-map ; inline
: cov-matrix ( matrix -- cov ) 0 cov-matrix-ddof ; inline : population-cov-matrix ( matrix -- cov ) 0 cov-matrix-ddof ; inline
: sample-cov-matrix ( matrix -- cov ) 1 cov-matrix-ddof ; inline : sample-cov-matrix ( matrix -- cov ) 1 cov-matrix-ddof ; inline