From 97d9cee7321a85ef01070d87db89fb7d35403593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Lindqvist?= Date: Fri, 23 Feb 2018 23:47:55 +0100 Subject: [PATCH] math.matrices: rename for consistency Getting the sample cov matrix is actually much more common than getting the population one. --- basis/math/matrices/matrices-tests.factor | 2 +- basis/math/matrices/matrices.factor | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/basis/math/matrices/matrices-tests.factor b/basis/math/matrices/matrices-tests.factor index e7627cfa09..3855357b46 100644 --- a/basis/math/matrices/matrices-tests.factor +++ b/basis/math/matrices/matrices-tests.factor @@ -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 { diff --git a/basis/math/matrices/matrices.factor b/basis/math/matrices/matrices.factor index 5eb5a6cde1..0cab9a1472 100644 --- a/basis/math/matrices/matrices.factor +++ b/basis/math/matrices/matrices.factor @@ -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