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.

Syntax

[X_normalized, parameters] = maxabsnormalize(X)

Inputs

X
Input data to be normalized.
Type: double
Dimension: vector | matrix

Outputs

X_normalized
Normalized input records.
Type: double
Dimension: vector | matrix
parameters
Struct containing maximum absolute of each column.
max_abs: maximum absolute of each column.
Type: double | integer
Dimension: struct

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.