|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttransformations.PCA
public class PCA
Field Summary | |
---|---|
double[] |
lambda
|
double[][] |
pc
|
Constructor Summary | |
---|---|
PCA()
|
Method Summary | |
---|---|
void |
computePCA(double[][] data)
Compute the parameters for the principal components analysis (PCA). |
void |
computePCA(java.util.List<Sample> data)
Compute the parameters for the principal components analysis (PCA). |
java.util.ArrayList<Sample> |
transform(java.util.ArrayList<Sample> in)
Transform a list of samples using the pre-computed principal components. |
java.util.ArrayList<Sample> |
transform(java.util.ArrayList<Sample> in,
int dim)
Transform a list of samples using the pre-computed principal components and reduce the dimsions to the given number. |
double[] |
transform(double[] x)
Transform a vector using the pre-computed principal components |
double[] |
transform(double[] x,
int dim)
Transform a vector using the pre-computed principal components and reduce the dimensions to the given number |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double[] lambda
public double[][] pc
Constructor Detail |
---|
public PCA()
Method Detail |
---|
public void computePCA(double[][] data)
data
- public void computePCA(java.util.List<Sample> data)
data
- public java.util.ArrayList<Sample> transform(java.util.ArrayList<Sample> in)
in
-
public java.util.ArrayList<Sample> transform(java.util.ArrayList<Sample> in, int dim)
in
- dim
- new (smaller) dimension of the samples
public double[] transform(double[] x)
x
-
public double[] transform(double[] x, int dim)
x
- dim
- new (smaller) dimension of the output vector
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |