public class PCA extends Object
Constructor and Description |
---|
PCA(double[][] xy)
Initialize 2D PCA analysis
|
PCA(P1D p1d)
Perform PCA analysis using P1D object (in 2D).
|
Modifier and Type | Method and Description |
---|---|
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
|
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(String[] args) |
public PCA(double[][] xy)
xy
- array in Xpublic PCA(P1D p1d)
p1d
- P1D input objectspublic void eval()
public double[][] center_reduce(double[][] x)
public double[] inv_center_reduce(double[] y)
public double[][] inv_center_reduce(double[][] y)
public 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 axispublic double getStd(int k)
k
- index of the axispublic static void main(String[] args)
public void doc()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics