public class KernelPCA<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Kernel<T> |
getKernel()
Get the kernel use in the KernelPCA
|
double |
getMean()
Get the mean of the current Kernel
|
double[][] |
getProjectors()
Get the projector coefficients obtained after learning
|
double[] |
getWhiteningCoefficients()
Get the whitening coefficient
|
TrainingSample<double[]> |
project(TrainingSample<T> t) |
TrainingSample<double[]> |
project(TrainingSample<T> t,
boolean whitening) |
java.util.List<TrainingSample<double[]>> |
projectList(java.util.List<TrainingSample<T>> list)
Performs the projection on a list of samples.
|
java.util.List<TrainingSample<double[]>> |
projectList(java.util.List<TrainingSample<T>> list,
boolean whitening)
Performs the projection on a list of samples with optional whitening
(unitary covariance matrix).
|
void |
setKernel(Kernel<T> kernel)
Set the current Kernel
|
void |
train(java.util.List<TrainingSample<T>> list) |
public void train(java.util.List<TrainingSample<T>> list)
public TrainingSample<double[]> project(TrainingSample<T> t, boolean whitening)
public TrainingSample<double[]> project(TrainingSample<T> t)
public java.util.List<TrainingSample<double[]>> projectList(java.util.List<TrainingSample<T>> list)
list
- the list of input samplespublic java.util.List<TrainingSample<double[]>> projectList(java.util.List<TrainingSample<T>> list, boolean whitening)
list
- the list of input sampleswhitening
- option to perform a whitened projectionpublic Kernel<T> getKernel()
public void setKernel(Kernel<T> kernel)
kernel
- the kernelpublic double getMean()
public double[][] getProjectors()
public double[] getWhiteningCoefficients()