standardizetransform

Standardize the test dataset using values computed by 'standardize' function.

Attention: Available only with Twin Activate commercial edition.

Syntax

scaled_X = standardizetransform(parameters,X)

Inputs

X
Input data to be standardized.
Type: double
Dimension: vector | matrix
parameters
Struct containing values such as mean and standard deviation to be used to standardize test data. It is output from 'standardize' function.
Type: double | integer
Dimension: struct

Outputs

scaled_X
Standardized input records.
Type: integer
Dimension: vector | matrix

Example

Usage of standardizetransform

X = [1, -1, 2;
     2, 0, 0;
     0, 1, -1];
X_test = [-1, 1, 0];
[X_scaled, parameters] = standardize(X);
X_test_scaled = standardizetransform(parameters, X_test);
X_test_scaled
X_test_scaled = [Matrix] 1 x 3
-2.44949 1.22474 -0.26726