maxabsnormalize
Normalizes dataset using Max Absolute Normalization. It scales and translates each feature individually such that the maximal absolute value of each feature in the training set will be 1.0 after normalization.
Attention: Available only with Twin Activate commercial edition.
Syntax
[X_normalized, parameters] = maxabsnormalize(X)
Inputs
- X
- Input data to be normalized.
Outputs
- X_normalized
- Normalized input records.
- parameters
- Struct containing maximum absolute of each column.
Example
Usage of maxabsnormalize
X = [1, -1, 2;
2, 0, 0;
0, 1, -1];
[X_scaled, parameters] = maxabsnormalize(X);
> X_scaled
X_scaled = [Matrix] 3 x 3
0.50000 -1.00000 1.00000
1.00000 0.00000 0.00000
0.00000 1.00000 -0.50000
> parameters
parameters = struct [
max_abs: [Matrix] 1 x 3
2 1 2
]
Comments
Output 'parameters' can be used by maxabsnormalizetransform function.