de.jstacs.utils
Class PFMComparator.SymmetricKullbackLeiblerDivergence

java.lang.Object
  extended by de.jstacs.utils.PFMComparator.PFMDistance
      extended by de.jstacs.utils.PFMComparator.SymmetricKullbackLeiblerDivergence
Enclosing class:
PFMComparator

public static class PFMComparator.SymmetricKullbackLeiblerDivergence
extends PFMComparator.PFMDistance

This class implements the symmetric Kullback-Leibler-divergence.

Author:
Jens Keilwagen

Constructor Summary
PFMComparator.SymmetricKullbackLeiblerDivergence(double ess)
          This constructor creates a new instance with a given value for the equivalent sample size.
 
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.SymmetricKullbackLeiblerDivergence

public PFMComparator.SymmetricKullbackLeiblerDivergence(double ess)
                                                 throws IllegalArgumentException
This constructor creates a new instance with a given value for the equivalent sample size.

Parameters:
ess - the equivalent sample size
Throws:
IllegalArgumentException - if the ess < 0
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