]> gitweb.factorcode.org Git - factor.git/commitdiff
math.matrices: rename for consistency
authorBjörn Lindqvist <bjourne@gmail.com>
Fri, 23 Feb 2018 22:47:55 +0000 (23:47 +0100)
committerBjörn Lindqvist <bjourne@gmail.com>
Sat, 24 Feb 2018 22:11:22 +0000 (23:11 +0100)
Getting the sample cov matrix is actually much more common than getting
the population one.

basis/math/matrices/matrices-tests.factor
basis/math/matrices/matrices.factor

index e7627cfa09fb0dd62f2cf564ccd4b817f38db1af..3855357b4622a76bbe7e01f2d9b11860895a2a70 100644 (file)
@@ -312,7 +312,7 @@ CONSTANT: test-points {
         { 23+59/147 6+15/49 27+17/49 }
     }
 } [
-    test-points cov-matrix
+    test-points population-cov-matrix
 ] unit-test
 
 {
index 5eb5a6cde1ee9d3300b80310d3dacb2795742a93..0cab9a1472b5309b22ec622a04e24ca255514f86 100644 (file)
@@ -222,7 +222,7 @@ ERROR: negative-power-matrix m n ;
 : cov-matrix-ddof ( matrix ddof -- cov )
     '[ _ 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