public interface SimilarityDistance
ContextVector
s.Modifier and Type | Method and Description |
---|---|
static java.lang.Class<? extends SimilarityDistance> |
forName(java.lang.String name) |
ExplainedValue |
getExplainedValue(ContextVector first,
ContextVector second)
Computes the value of the similarity distance between two
ContextVector s
and produces an explanation of the distance value, i.e. a list of vectors' component
contributing the most to the final distance value. |
double |
getValue(ContextVector first,
ContextVector second)
Computes the value of the similarity distance between two
ContextVector s. |
static java.lang.Class<? extends SimilarityDistance>[] |
values() |
double getValue(ContextVector first, ContextVector second)
ContextVector
s.first
- a context vectorsecond
- a context vectorExplainedValue getExplainedValue(ContextVector first, ContextVector second)
ContextVector
s
and produces an explanation of the distance value, i.e. a list of vectors' component
contributing the most to the final distance value.first
- a context vectorsecond
- a context vectorExplainedValue
object holding both the distance value and
the explanation.Explanation
,
ExplainedValue
static java.lang.Class<? extends SimilarityDistance>[] values()
static java.lang.Class<? extends SimilarityDistance> forName(java.lang.String name)