Improve comment on what algorithm is used

This commit is contained in:
Jonathan J Lawlor
2014-12-21 18:54:44 -05:00
parent bce5c81adc
commit 0e425f0d55

View File

@@ -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