de.jstacs.utils
Class PFMComparator.NormalizedEuclideanDistance

java.lang.Object
  extended by de.jstacs.utils.PFMComparator.PFMDistance
      extended by 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

Constructor Summary
PFMComparator.NormalizedEuclideanDistance()
           
 
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 de.jstacs.utils.PFMComparator.PFMDistance
compare, getDistance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PFMComparator.NormalizedEuclideanDistance

public PFMComparator.NormalizedEuclideanDistance()
Method Detail

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 PFM
pfm2 - the second PFM
l1 - the offset for the first PFM
l2 - the offset for the second PFM
Returns:
the mean distance of the overlapping part