@Reference(type=Book, author={"Hyvrinen, Aapo","Hurri, Jarmo","Hoyer, Patrick O."}, title="Natural Image Statistics: A Probabilistic Approach to Early Computational Vision.", year="2009", edition="1st", publisher="Springer Publishing Company, Incorporated", customData={"isbn","1848824904, 9781848824904"}) public class PCAWhitening extends WhiteningTransform
Optionally, you can also reduce the dimensionality of the data during the whitening process (by throwing away components with small eignevalues).
Modifier and Type | Field and Description |
---|---|
protected double |
eps |
protected int |
ndims |
protected Normaliser |
ns |
protected Jama.Matrix |
transform |
Constructor and Description |
---|
PCAWhitening(double eps,
Normaliser ns)
Construct with the given variance regularization parameter and data
normalisation strategy.
|
PCAWhitening(double eps,
Normaliser ns,
int ndims)
Construct with the given variance regularization parameter, data
normalisation strategy and target dimensionality.
|
Modifier and Type | Method and Description |
---|---|
Jama.Matrix |
getTransform()
Get the underlying whitening transform matrix.
|
void |
train(double[][] data)
Train the whitening transform with the given features.
|
double[] |
whiten(double[] vector)
Apply the whitening transform to the given vector.
|
whiten
protected double eps
protected Normaliser ns
protected Jama.Matrix transform
protected int ndims
public PCAWhitening(double eps, Normaliser ns)
eps
- the variance normalisation regularizer (each principle
dimension is divided by sqrt(lamba + eps), where lamba is the
corresponding eigenvalue).ns
- the normalisation to apply to each input data vector prior to
training the transform or applying the actual whitening.public PCAWhitening(double eps, Normaliser ns, int ndims)
eps
- the variance normalisation regularizer (each principle
dimension is divided by sqrt(lamba + eps), where lamba is the
corresponding eigenvalue).ns
- the normalisation to apply to each input data vector prior to
training the transform or applying the actual whitening.ndims
- the number of output dimensions for the whitened datapublic double[] whiten(double[] vector)
WhiteningTransform
whiten
in class WhiteningTransform
vector
- the vectorpublic void train(double[][] data)
WhiteningTransform
train
in class WhiteningTransform
data
- the data (one feature per row)public Jama.Matrix getTransform()