de.jstacs.utils
Class PFMComparator.NormalizedEuclideanDistance
java.lang.Object
de.jstacs.utils.PFMComparator.PFMDistance
de.jstacs.utils.PFMComparator.NormalizedEuclideanDistance
- Enclosing class:
- PFMComparator
public static class PFMComparator.NormalizedEuclideanDistance
- extends PFMComparator.PFMDistance
This class implements the normalized Euclidean distance.
- 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.NormalizedEuclideanDistance
public PFMComparator.NormalizedEuclideanDistance()
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