You are here:
Start »
AVL.NET »
AVL.NormalizeMatrixData Method
AVL.NormalizeMatrixData Method
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: | AvlNet |
| Assembly: | AVL.NET.dll |
Syntax
public static void NormalizeMatrixData(
AvlNet.Matrix inMatrix,
AvlNet.Matrix inMeansVector,
AvlNet.Matrix inStandardDeviationsVector,
out AvlNet.Matrix outNormalizedMatrix,
out AvlNet.Matrix outMeansVector,
out AvlNet.Matrix outStandardDeviationsVector
)
Parameters
|
Name |
Type |
Range |
Default |
Description |
 | inMatrix | AvlNet.Matrix | | | Input data frame. |
 | inMeansVector | AvlNet.Matrix | | | If provided, will be used in normalization of inMatrix. Default value: atl::NIL, or null. |
 | inStandardDeviationsVector | AvlNet.Matrix | | | If provided, will be used in normalization of inMatrix. Default value: atl::NIL, or null. |
 | outNormalizedMatrix | AvlNet.Matrix | | | Resulting normalized matrix. |
 | outMeansVector | AvlNet.Matrix | | | Resulting Means vector - copy of inMeansVector, or calculated Means, if inMeansVector was set NIL. |
 | outStandardDeviationsVector | AvlNet.Matrix | | | Resulting StdDevs vector - copy of inStandardDeviationsVector, or calculated Means, if inStandardDeviationsVector was set NIL. |
Errors
| Error type |
Description |
| DomainError |
Incorrect matrix dimensions in NormalizeData. |
| DomainError |
One can provide both Means and StdDevs vector or none of them. |
See also