public class PerExampleMeanCenterVar extends Object implements Normaliser
Only use if the data is stationary (i.e., the statistics for each data dimension follow the same distribution).
| Constructor and Description |
|---|
PerExampleMeanCenterVar(double eps)
Construct with the given variance regularisation term.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
normalise(double[] vector)
Normalise the vector.
|
double[][] |
normalise(double[][] data)
Normalise the data.
|
public PerExampleMeanCenterVar(double eps)
eps - the variance normalisation regularizer (each dimension is
divided by sqrt(var + eps).public double[] normalise(double[] vector)
Normalisernormalise in interface Normaliservector - the vectorpublic double[][] normalise(double[][] data)
Normalisernormalise in interface Normaliserdata - the data (one vector per row)