comirva.web.text.similarity
Class SimMeasure_InnerProduct
java.lang.Object
comirva.web.text.similarity.SimMeasure
comirva.web.text.similarity.SimMeasure_InnerProduct
public class SimMeasure_InnerProduct
- extends SimMeasure
Inner product.
Method Summary |
protected float |
getSimilarity_intern(float[] item1,
float[] item2)
Calculates and returns the inner product similarity. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimMeasure_InnerProduct
public SimMeasure_InnerProduct(NormFunc normFunc)
getSimilarity_intern
protected float getSimilarity_intern(float[] item1,
float[] item2)
throws SizeMismatchException
- Calculates and returns the inner product similarity.
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 inner product between data vector
item1
and item2
- Throws:
SizeMismatchException