public class DistancesUtil
extends java.lang.Object
| Constructor and Description |
|---|
DistancesUtil() |
| Modifier and Type | Method and Description |
|---|---|
static double |
getAntiDiceDistance(Product p1,
Product p2)
Return the anti dice distance between two products.
|
static double |
getDiceDistance(Product p1,
Product p2)
Return the dice distance between two products.
|
static double |
getJaccardDistance(Product p1,
Product p2)
Return the jaccard distance between two products.
|
public static double getJaccardDistance(Product p1, Product p2)
p1 - the first product to consider.p2 - the second product to consider.public static double getDiceDistance(Product p1, Product p2)
p1 - the first product to consider.p2 - the second product to consider.