|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.stat.PCA
public class PCA
Perform a principle component analysis
Constructor Summary | |
---|---|
PCA(double[][] xy)
Initialize 2D PCA analysis |
|
PCA(P1D p1d)
Perform PCA analysis using P1D object (in 2D). |
Method Summary | |
---|---|
double[][] |
center_reduce(double[][] x)
|
void |
doc()
Show online documentation. |
void |
eval()
|
double |
getCoordinate(int k,
int i)
Positions of the last coordinates of the projection vectors (eigenvectors) |
double[][] |
getCovariance()
Get covariance matrix |
double[] |
getD()
Get transpose |
double |
getEigenvalue(int k)
Information about eigenvalues |
double |
getEigenvalueTot(int k)
Express eigenvalues as percentage of total |
double |
getMean(int k)
Get means for the component k |
double |
getStd(int k)
Get standard deviations |
java.lang.String |
getSummary()
Return projection vectors and information per projection vector. |
double[] |
inv_center_reduce(double[] y)
|
double[][] |
inv_center_reduce(double[][] y)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PCA(double[][] xy)
xy
- array in Xpublic PCA(P1D p1d)
p1d
- P1D input objectsMethod Detail |
---|
public void eval()
public double[][] center_reduce(double[][] x)
public double[] inv_center_reduce(double[] y)
public double[][] inv_center_reduce(double[][] y)
public java.lang.String getSummary()
public double getEigenvalue(int k)
k
- - integer value (axis index of the projection)
public double getEigenvalueTot(int k)
k
- integer value (axis index of the projection)
public double getCoordinate(int k, int i)
k
- - integer value (axis index)i
- - index (position)
public double[][] getCovariance()
public double[] getD()
public double getMean(int k)
k
- index of the axis
public double getStd(int k)
k
- index of the axis
public static void main(java.lang.String[] args)
public void doc()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |