|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttools.math.PearsonCoefficient
public class PearsonCoefficient
Implements the Pearson product-moment correlation coefficient which calculates the correlation between two given lists of data points.
See also: Wikipedia
Constructor Summary | |
---|---|
PearsonCoefficient()
|
Method Summary | |
---|---|
void |
feedData(Collection<Point> data)
Feeds a list of data points into the dataset. |
void |
feedData(float x,
float y)
Feeds one data point into the dataset |
void |
feedData(Point p)
Feeds one data point into the dataset |
float |
getCorrelationCoefficient()
Calculates the Pearson correlation coefficient for the current dataset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PearsonCoefficient()
Method Detail |
---|
public void feedData(Collection<Point> data)
CorrelationCoefficient
feedData
in interface CorrelationCoefficient
data
- list of points
.public void feedData(Point p)
CorrelationCoefficient
feedData
in interface CorrelationCoefficient
p
- data point to be addedpublic void feedData(float x, float y)
CorrelationCoefficient
feedData
in interface CorrelationCoefficient
x
- data point's xy
- data point's ypublic float getCorrelationCoefficient()
getCorrelationCoefficient
in interface CorrelationCoefficient
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |