You are here: Start » FIL.NET » Function Reference » Data Classification » Principal Component Analysis » FIL.NormalizeMatrixData

FIL.NormalizeMatrixData

Treats Matrix as a data frame, where examples are in rows while columns represent features, and normalizes the data by subtracting mean from each column and dividing it by its standard deviation.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void NormalizeMatrixData
(
	FilNet.Matrix inMatrix,
	NullableRef<FilNet.Matrix> inMeansVector,
	NullableRef<FilNet.Matrix> inStandardDeviationsVector,
	FilNet.Matrix outNormalizedMatrix,
	FilNet.Matrix outMeansVector,
	FilNet.Matrix outStandardDeviationsVector
)

Parameters

Name Type Range Default Description
inMatrixFilNet.MatrixInput data frame.
inMeansVectorFilNet.NullableRef<FilNet.Matrix>If provided, will be used in normalization of inMatrix. Default value: ftl::NIL.
inStandardDeviationsVectorFilNet.NullableRef<FilNet.Matrix>If provided, will be used in normalization of inMatrix. Default value: ftl::NIL.
outNormalizedMatrixFilNet.MatrixResulting normalized matrix.
outMeansVectorFilNet.MatrixResulting Means vector - copy of inMeansVector, or calculated Means, if inMeansVector was set NIL.
outStandardDeviationsVectorFilNet.MatrixResulting StdDevs vector - copy of inStandardDeviationsVector, or calculated Means, if inStandardDeviationsVector was set NIL.

Errors

List of possible exceptions:

Error type Description
DomainError Incorrect matrix dimensions in NormalizeData.
DomainError One can provide both Means and StdDevs vector or none of them.

Function Overrides

See also