|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot.XYStats
public class XYStats
Calculates X-Y correlation statistics.
Constructor Summary | |
---|---|
XYStats(boolean xLog,
boolean yLog)
Constructs a new correlation statistics calculator. |
Method Summary | |
---|---|
void |
addPoint(double x,
double y)
Submits a data point for calculations. |
double |
getCorrelation()
Returns the product moment correlation coefficient. |
double[] |
getLinearCoefficients()
Returns the polynomial coefficients of a linear regression line for the submitted data. |
double[] |
linearRegressionLine()
Calculates the linear regression line for the submitted points. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XYStats(boolean xLog, boolean yLog)
xLog
- whether the X coordinates are being plotted on a
logarithmic scaleyLog
- whether the Y coordinates are being plotted on a
logarithmic scaleMethod Detail |
---|
public void addPoint(double x, double y)
x
- X coordinatey
- Y coordinatepublic double[] getLinearCoefficients()
public double getCorrelation()
public double[] linearRegressionLine()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |