de.aitools.ir.retrievalmodels.relevance.probabilistic
Class JensenShannonDivergence

java.lang.Object
  extended by de.aitools.ir.retrievalmodels.relevance.probabilistic.JensenShannonDivergence
All Implemented Interfaces:
RelevanceFunction<Vector,Vector>

public class JensenShannonDivergence
extends java.lang.Object
implements RelevanceFunction<Vector,Vector>

Implementation of the JensenShannonDivergence() based on the remarks in Divergence measures based on the Shannon entropy by Jianhua Lin. In constrast to retrievalmodels.relevance.probabilistic.KullbackLeiblerDivergence #KullbackLeiblerDivergence(), the J-divergence is symmetric.

Version:
aitools 3.0 Created on Apr 18, 2010 $Id: JensenShannonDivergence.java,v 1.1 2010/05/19 15:52:03 poma1006 Exp $
Author:
dennis.hoppe@uni-weimar.de

Constructor Summary
JensenShannonDivergence()
           
 
Method Summary
 double compute(Vector p1, Vector p2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JensenShannonDivergence

public JensenShannonDivergence()
Method Detail

compute

public double compute(Vector p1,
                      Vector p2)
Specified by:
compute in interface RelevanceFunction<Vector,Vector>