The IDLmlRangeNormalizer class implements a normalizer that will scale data to have a range of 1 and a mean of 0.

Example


Data = findgen(10)
Normalizer = IDLmlRangeNormalizer(data)
Print, Normalizer.Normalize(data)

Syntax


Result = IDLmlRangeNormalizer(Data)

Arguments


Data

A numerical array from which the normalizer will determine the proper normalization parameters. The array must be 2D, of size n x m, where n is the number of attributes and m is the number of examples.

Keywords


None

Properties


None

Methods


IDLmlRangeNormalizer::Normalize


The IDLmlRangeNormalizer::Normalize method computes the normalization of input data.

Syntax


This method can be invoked as a procedure or a function. The procedure syntax is faster and more efficient, but it overwrites the Data argument. The function syntax is less efficient, but it leaves the input argument untouched.

As a procedure:

Obj->[IDLmlRangeNormalizer::]Normalize, Data

As a function:

Result = Obj->[IDLmlRangeNormalizer::]Normalize(Data)

Arguments


Data

Specify a scalar, 1D array or 2D array of data to normalize.

If the data is 2D, the array must be of size n x m, where n is the number of attributes and m is the number of examples. If the data is 1D, the array must be of size n (number of attributes).

Keywords


None

IDLmlRangeNormalizer::Restore


The IDLmlRangeNormalizer::Restore static method restores the normalizer from a file.

Syntax


Result = IDLmlRangeNormalizer.Restore(Filename)

Return Value


A reference to the object instance restored from the file.

Arguments


Filename

Specify the name of the file to restore.

Keywords


None

IDLmlRangeNormalizer::Save


The IDLmlRangeNormalizer::Save method saves the normalizer to a file.

Syntax


Obj->[IDLmlRangeNormalizer::]Save, Filename

Arguments


Filename

Specify the name of the file to save.

Keywords


None

IDLmlRangeNormalizer::Unnormalize


The IDLmlRangeNormalizer::Unnormalize method returns normalized data to its original values.

Syntax


This method can be invoked as a procedure or a function. The procedure syntax is faster and more efficient, but it overwrites the Data argument. The function syntax is less efficient, but it leaves the input argument untouched.

As a procedure:

Obj->[IDLmlRangeNormalizer::]Unnormalize, Data

As a function:

Result = Obj->[IDLmlRangeNormalizer::]Unnormalize(Data)

Arguments


Data

Specify a scalar, 1D array or 2D array of data to normalize.

If the data is 2D, the array must be of size n x m, where n is the number of attributes and m is the number of examples. If the data is 1D, the array must be of size n (number of attributes).

Keywords


None

Version History


8.7.1

Introduced

See Also


IDLmlLinearNormalizer, IDLmlUnitNormalizer, IDLmlVarianceNormalizer