public class DoublePCA
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
DoublePCA() |
| Modifier and Type | Method and Description |
|---|---|
TrainingSample<double[]> |
project(TrainingSample<double[]> s)
Project a single sample using the trained projectors.
|
TrainingSample<double[]> |
project(TrainingSample<double[]> s,
boolean whitening)
Project a single sample using the trained projectors with optional whitening (unitary
covariance matrix).
|
java.util.List<TrainingSample<double[]>> |
projectList(java.util.List<TrainingSample<double[]>> list)
Performs the projection on a list of samples.
|
java.util.List<TrainingSample<double[]>> |
projectList(java.util.List<TrainingSample<double[]>> list,
boolean whitening)
Performs the projection on a list of samples with optional whitening (unitary covariance matrix).
|
void |
train(java.util.List<TrainingSample<double[]>> list)
Train the projectors on a given data-set.
|
public void train(java.util.List<TrainingSample<double[]>> list)
list - the list of training samplespublic TrainingSample<double[]> project(TrainingSample<double[]> s)
s - the sample to projectpublic TrainingSample<double[]> project(TrainingSample<double[]> s, boolean whitening)
s - the sample to projectwhitening - option to perform a whitened projectionpublic java.util.List<TrainingSample<double[]>> projectList(java.util.List<TrainingSample<double[]>> list)
list - the list of input samplespublic java.util.List<TrainingSample<double[]>> projectList(java.util.List<TrainingSample<double[]>> list, boolean whitening)
list - the list of input sampleswhitening - option to perform a whitened projection