public class EEcentricity extends Object
Constructor and Description |
---|
EEcentricity(double[] x,
double[] y,
double[] w)
Initialize 2D PCA analysis
|
EEcentricity(P1D p1d)
Perform PCA analysis using P1D object (in 2D).
|
Modifier and Type | Method and Description |
---|---|
void |
doc()
Show online documentation.
|
double |
getAngle()
Returns angle of ellipse rotation (angle of the principial axis)
|
double |
getEccentricity()
Get eccentricity, defined as 1-VarianceMin / VarianceMax.
|
double |
getVarianceMax()
Get variance alone the major axis (longest component)
|
double |
getVarianceMin()
Get variance alone the minor (shortest component)
|
public EEcentricity(double[] x, double[] y, double[] w)
x
- array in Xy
- array in Y (the same size as for X)w
- points weights (can be set to 1 if all points are treated with
the same weight)public EEcentricity(P1D p1d)
p1d
- P1D input objectspublic double getAngle()
public double getVarianceMin()
public double getVarianceMax()
public double getEccentricity()
public void doc()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics