mirror of
https://github.com/gonum/gonum.git
synced 2025-10-26 08:40:26 +08:00
expand algo comment
This commit is contained in:
@@ -19,8 +19,10 @@ import (
|
|||||||
// number of columns as the input data matrix x, or nil in which case a new
|
// number of columns as the input data matrix x, or nil in which case a new
|
||||||
// Dense matrix will be constructed.
|
// Dense 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
|
// This is the matrix version of the two-pass algorithm. It doesn't use the
|
||||||
// the correction found in the Covariance and Variance functions.
|
// additional floating point error correction that the Covariance function uses
|
||||||
|
// to reduce the impact of rounding during centering.
|
||||||
|
|
||||||
r, c := x.Dims()
|
r, c := x.Dims()
|
||||||
|
|
||||||
// TODO(jonlawlor): indicate that the resulting matrix is symmetric, which
|
// TODO(jonlawlor): indicate that the resulting matrix is symmetric, which
|
||||||
|
|||||||
Reference in New Issue
Block a user