From 0e425f0d5514b9a6bc8d8b704c01676dfc01cd19 Mon Sep 17 00:00:00 2001 From: Jonathan J Lawlor Date: Sun, 21 Dec 2014 18:54:44 -0500 Subject: [PATCH] Improve comment on what algorithm is used --- covariancematrix.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/covariancematrix.go b/covariancematrix.go index 455f75d7..0cbd03a7 100644 --- a/covariancematrix.go +++ b/covariancematrix.go @@ -19,10 +19,8 @@ import ( // columns as the input data matrix x, or if it is nil then a new Dense // matrix will be constructed. func CovarianceMatrix(cov *mat64.Dense, x mat64.Matrix, wts []float64) *mat64.Dense { - - // matrix version of the two pass algorithm. This doesn't use + // This is the matrix version of the two-pass algorithm. It doesn't use // the correction found in the Covariance and Variance functions. - r, c := x.Dims() // determine the mean of each of the columns