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