comirva.web.text.similarity
Class SimMeasure_OverlapSimWhitman
java.lang.Object
comirva.web.text.similarity.SimMeasure
comirva.web.text.similarity.SimMeasure_OverlapSimWhitman
public class SimMeasure_OverlapSimWhitman
- extends SimMeasure
Method Summary |
protected float |
getSimilarity_intern(float[] item1,
float[] item2)
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_OverlapSimWhitman
public SimMeasure_OverlapSimWhitman(NormFunc normFunc)
getSimilarity_intern
protected float getSimilarity_intern(float[] item1,
float[] item2)
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:
item1
- vector representing the first artistitem2
- vector representing the second artist
- Returns:
-
- Throws:
SizeMismatchException