procope.tools.math
Interface CorrelationCoefficient

All Known Implementing Classes:
PearsonCoefficient, SpearmanCoefficient

public interface CorrelationCoefficient

Interface implemented by classes which calculate correlation coefficients of a list of pairs of data points.

Author:
Jan Krumsiek
See Also:
PearsonCoefficient, SpearmanCoefficient

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 point)
          Feeds one data point into the dataset
 float getCorrelationCoefficient()
          Calculates the correlation coefficient for the current list of data points.
 

Method Detail

feedData

void feedData(float x,
              float y)
Feeds one data point into the dataset

Parameters:
x - data point's x
y - data point's y

feedData

void feedData(Collection<Point> data)
Feeds a list of data points into the dataset.

Parameters:
data - list of points.

feedData

void feedData(Point point)
Feeds one data point into the dataset

Parameters:
point - data point to be added

getCorrelationCoefficient

float getCorrelationCoefficient()
Calculates the correlation coefficient for the current list of data points.

Returns:
correlation coefficient of current list of data points