normalise_data

compas_fea2.utilities.normalise_data(data, cmin, cmax)

Normalise a vector of data to between -1 and 1.

Parameters
dataarray

Raw data.

cminfloat

Cap data values >= cmin.

cmaxfloat

Cap data values <= cmax.

Returns
array

-1 to 1 scaled data.

float

The maximum absolute unscaled value.