comirva.web.text.similarity
Class SimMeasure_JeffreyDist

java.lang.Object
  extended by comirva.web.text.similarity.SimMeasure
      extended by comirva.web.text.similarity.SimMeasure_JeffreyDist

public class SimMeasure_JeffreyDist
extends SimMeasure


Nested Class Summary
 
Nested classes/interfaces inherited from class comirva.web.text.similarity.SimMeasure
SimMeasure.SimType
 
Constructor Summary
SimMeasure_JeffreyDist(NormFunc normFunc)
           
 
Method Summary
protected  float getSimilarity_intern(float[] a, float[] b)
          return the computed similarity (or distance, respectively) between the two vectors.
 
Methods inherited from class comirva.web.text.similarity.SimMeasure
getName, getSimilarity, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimMeasure_JeffreyDist

public SimMeasure_JeffreyDist(NormFunc normFunc)
Method Detail

getSimilarity_intern

protected float getSimilarity_intern(float[] a,
                                     float[] b)
                              throws SizeMismatchException
Description copied from class: SimMeasure
return the computed similarity (or distance, respectively) between the two vectors. Which of distance or similarity is computed by this measure can be queried by calling getType().

Specified by:
getSimilarity_intern in class SimMeasure
Parameters:
a - vector representing the first artist
b - vector representing the second artist
Returns:
Throws:
SizeMismatchException