Package | Description |
---|---|
info.debatty.java.utils |
Modifier and Type | Method and Description |
---|---|
double |
SparseIntegerVector.cosineSimilarity(SparseIntegerVector other)
Compute and return the cosine similarity (cosine of angle between both
vectors).
|
double |
SparseIntegerVector.dotProduct(SparseIntegerVector other)
Compute and return the dot product.
|
int |
SparseIntegerVector.intersection(SparseIntegerVector other)
Compute the number of values that are present in both vectors (used to
compute jaccard index).
|
double |
SparseIntegerVector.jaccard(SparseIntegerVector other)
Computes and return the Jaccard index with other SparseVector.
|
double |
SparseIntegerVector.qgram(SparseIntegerVector other)
Compute and return the qgram similarity with other vector.
|
int |
SparseIntegerVector.union(SparseIntegerVector other)
Compute the size of the union of these two vectors.
|
Copyright © 2016. All rights reserved.