comirva.web.text.similarity
Class SimMeasure_OverlapSim
java.lang.Object
comirva.web.text.similarity.SimMeasure
comirva.web.text.similarity.SimMeasure_OverlapSim
public class SimMeasure_OverlapSim
- extends SimMeasure
Method Summary |
protected float |
getSimilarity_intern(float[] item1,
float[] item2)
Calculates and returns the similarity as overlap formulation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimMeasure_OverlapSim
public SimMeasure_OverlapSim(NormFunc normFunc)
getSimilarity_intern
protected float getSimilarity_intern(float[] item1,
float[] item2)
throws SizeMismatchException
- Calculates and returns the similarity as overlap formulation.
between two float[] data vectors
item1
and item2
.
- Specified by:
getSimilarity_intern
in class SimMeasure
- Parameters:
item1
- vector representing the first artistitem2
- vector representing the second artist
- Returns:
- a float value which is the overlap similarity between data vector
item1
and item2
- Throws:
SizeMismatchException