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)
Normaliser
normalise
in interface Normaliser
vector
- the vectorpublic double[][] normalise(double[][] data)
Normaliser
normalise
in interface Normaliser
data
- the data (one vector per row)