Click or drag to resize

MatrixMathColumnsToZeroMeanAndUnitVariance Method

This will center the matrix so that the mean of each column is null, and the variance of each column is one.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void ColumnsToZeroMeanAndUnitVariance(
	IMatrix<double> a,
	IVector<double>? meanvec,
	IVector<double>? scalevec
)

Parameters

a  IMatrixDouble
The matrix where the columns should be centered and normalized to standard variance.
meanvec  IVectorDouble
You can provide a vector of length(a.Cols) where the mean row vector is stored, or null if not interested in this vector.
scalevec  IVectorDouble
You can provide a vector of length(a.Cols) where the inverse of the variance of the columns is stored, or null if not interested in this vector.
Remarks
Calling this function will change the matrix a to a column centered matrix. The original matrix data are lost.
See Also