public class Normalizations
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static double[] |
DecimalScaling(double[] data)
Decimal scaling.
|
static double[] |
MinMaxNormalization(double[] data,
double min,
double max)
Map the data to a specified range, Smin to Smax, but still retain the relationship between the values.
|
static double[] |
RangeNormalization(double[] data,
double fromMin,
double fromMax,
double toMin,
double toMax)
Converts the value x (which is measured in the scale 'from') to another value measured in the scale 'to'.
|
static double[] |
SoftmaxScaling(double[] data,
double r)
Nonlinear method may be desired if the data distribution is skewed.
|
static double[] |
StandartNormalDensity(double[] data)
A commonly used statistical-based method to normalize these measures is to take each vector component and subtract the mean and divide
by the standard deviation.
|
static double[] |
UnitVectorNormalization(double[] data)
Will modify the feature vectors so that they all have a magnitude of 1.
|
public static double[] DecimalScaling(double[] data)
data - Data.public static double[] RangeNormalization(double[] data,
double fromMin,
double fromMax,
double toMin,
double toMax)
data - Data.fromMin - Range min from.fromMax - Range max from.toMin - Range min from.toMax - Range max from.public static double[] UnitVectorNormalization(double[] data)
data - Data.public static double[] StandartNormalDensity(double[] data)
data - Data.public static double[] MinMaxNormalization(double[] data,
double min,
double max)
data - Data.min - Range min.max - Range max.public static double[] SoftmaxScaling(double[] data,
double r)
data - Data.r - Determines the range of values for the feature, that will fall into the linear range.