public class Similarity
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Similarity |
INVALID_SIM |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Similarity sim)
Compares this to another similarity.
|
static Similarity |
get(java.lang.Double d)
Initializes this with d
|
double |
getRoundedValue()
Rounds the value of this similarity to
two decimal digits
|
double |
getValue()
Get the value of this similarity
|
java.lang.String |
toString()
Returns string representation of this similarity.
|
public static final Similarity INVALID_SIM
public static Similarity get(java.lang.Double d)
d - value of this similaritypublic double getRoundedValue()
public double getValue()
public java.lang.String toString()
Double.toString() else NaN.toString in class java.lang.Objectpublic boolean equals(Similarity sim)