math.matrices: rename for consistency
Getting the sample cov matrix is actually much more common than getting the population one.windows-high-dpi
parent
780bbd49cf
commit
97d9cee732
|
@ -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
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue