comirva.web.text.similarity
Class SimMeasure_JeffreyDist
java.lang.Object
comirva.web.text.similarity.SimMeasure
comirva.web.text.similarity.SimMeasure_JeffreyDist
public class SimMeasure_JeffreyDist
- extends SimMeasure
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimMeasure_JeffreyDist
public SimMeasure_JeffreyDist(NormFunc normFunc)
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 artistb
- vector representing the second artist
- Returns:
-
- Throws:
SizeMismatchException