mirror of
https://github.com/gonum/gonum.git
synced 2025-10-28 17:31:56 +08:00
Improve comment on what algorithm is used
This commit is contained in:
@@ -19,10 +19,8 @@ import (
|
|||||||
// columns as the input data matrix x, or if it is nil then a new Dense
|
// columns as the input data matrix x, or if it is nil then a new Dense
|
||||||
// matrix will be constructed.
|
// matrix will be constructed.
|
||||||
func CovarianceMatrix(cov *mat64.Dense, x mat64.Matrix, wts []float64) *mat64.Dense {
|
func CovarianceMatrix(cov *mat64.Dense, x mat64.Matrix, wts []float64) *mat64.Dense {
|
||||||
|
// This is the matrix version of the two-pass algorithm. It doesn't use
|
||||||
// matrix version of the two pass algorithm. This doesn't use
|
|
||||||
// the correction found in the Covariance and Variance functions.
|
// the correction found in the Covariance and Variance functions.
|
||||||
|
|
||||||
r, c := x.Dims()
|
r, c := x.Dims()
|
||||||
|
|
||||||
// determine the mean of each of the columns
|
// determine the mean of each of the columns
|
||||||
|
|||||||
Reference in New Issue
Block a user