- All Implemented Interfaces:
- java.io.Serializable, DistanceMeasure
public class PearsonCorrelationCoefficient
- extends AbstractCorrelation
Calculates the Pearson Correlation Coeffient between two vectors.
The returned value lies in the interval [-1,1]. A value of 1 shows that a
linear equation describes the relationship perfectly and positively, with all
data points lying on the same line and with Y increasing with X. A score of
?1 shows that all data points lie on a single line but that Y increases as X
decreases. A value of 0 shows that a linear model is inappropriate / that
there is no linear relationship between the variables.
- Thomas Abeel (firstname.lastname@example.org)
- See Also:
- Serialized Form
Measures the Pearson Correlation Coefficient between the two supplied
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public double measure(Instance a,
- Measures the Pearson Correlation Coefficient between the two supplied
a - the first instance
b - the second instance
- the distance between the two instances
Copyright © 2006-2010 - Thomas Abeel - All Rights Reserved.