Modifier and Type | Class and Description |
---|---|
private class |
LinCorrStatBox.Point |
Modifier and Type | Field and Description |
---|---|
private java.util.List<LinCorrStatBox.Point> |
corrPts |
private double |
linCorr |
private static double |
UNSET |
private boolean |
useRsq |
Constructor and Description |
---|
LinCorrStatBox() |
LinCorrStatBox(boolean useRsquared) |
Modifier and Type | Method and Description |
---|---|
void |
add(StatBox box)
Adds the points from the given box to this box.
|
void |
addPoint(double x,
double y)
Adds a the poitn (x,y) to the list of point in consideration for correlation, as long as both x and y are non-inifinite.
|
private double |
computeCorrelation()
Computes the linear correlation between the points (r^2 value).
|
double |
getCorrelation()
Computes the linear correlation between the points (r^2 value).
|
double |
getValue()
Returns the linear correlation.
|
void |
printPoints(java.io.PrintStream out) |
java.lang.String |
toString() |
private static double UNSET
private final java.util.List<LinCorrStatBox.Point> corrPts
private double linCorr
private boolean useRsq
public LinCorrStatBox()
public LinCorrStatBox(boolean useRsquared)
public void add(StatBox box)
public void addPoint(double x, double y)
private double computeCorrelation()
public double getCorrelation()
public double getValue()
public void printPoints(java.io.PrintStream out)
public java.lang.String toString()
toString
in class java.lang.Object