de.jstacs.utils
Class PFMComparator.OneMinusPearsonCorrelationCoefficient
java.lang.Object
de.jstacs.utils.PFMComparator.PFMDistance
de.jstacs.utils.PFMComparator.OneMinusPearsonCorrelationCoefficient
- Enclosing class:
- PFMComparator
public static class PFMComparator.OneMinusPearsonCorrelationCoefficient
- extends PFMComparator.PFMDistance
This class implements the Pearson correlation coefficient.
For the reason of creating a distance, it returns 1 - CC.
- Author:
- Jens Keilwagen
|
Method Summary |
protected double |
getDistance(double[][] pfm1,
double[][] pfm2,
int l1,
int l2)
Computes the mean distance between the overlapping parts of pfm1 and pfm2 starting at the offsets
l1 and l2, respectively. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PFMComparator.OneMinusPearsonCorrelationCoefficient
public PFMComparator.OneMinusPearsonCorrelationCoefficient()
getDistance
protected double getDistance(double[][] pfm1,
double[][] pfm2,
int l1,
int l2)
- Description copied from class:
PFMComparator.PFMDistance
- Computes the mean distance between the overlapping parts of
pfm1 and pfm2 starting at the offsets
l1 and l2, respectively.
- Specified by:
getDistance in class PFMComparator.PFMDistance
- Parameters:
pfm1 - the first PFMpfm2 - the second PFMl1 - the offset for the first PFMl2 - the offset for the second PFM
- Returns:
- the mean distance of the overlapping part