Click or drag to resize

MatrixMathColumnsToZeroMean Method

This will center the matrix so that the mean of each column is null.

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

Parameters

a  IMatrixDouble
The matrix where the columns should be centered.
mean  IVectorDouble
You can provide a matrix of dimension(1,a.Cols) where the mean row vector 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