public abstract class AbstractSimilarityDistance extends java.lang.Object implements SimilarityDistance
SimilarityDistance
that manages the
similarity explanation.SimilarityDistance
,
Explanation
Constructor and Description |
---|
AbstractSimilarityDistance() |
Modifier and Type | Method and Description |
---|---|
ExplainedValue |
getExplainedValue(ContextVector v1,
ContextVector v2)
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 v1,
ContextVector v2)
Computes the value of the similarity distance between two
ContextVector s. |
protected abstract double |
getValue(ContextVector source,
ContextVector target,
Explanation explainedValue) |
public ExplainedValue getExplainedValue(ContextVector v1, ContextVector v2)
SimilarityDistance
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.getExplainedValue
in interface SimilarityDistance
v1
- a context vectorv2
- a context vectorExplainedValue
object holding both the distance value and
the explanation.Explanation
,
ExplainedValue
public double getValue(ContextVector v1, ContextVector v2)
SimilarityDistance
ContextVector
s.getValue
in interface SimilarityDistance
v1
- a context vectorv2
- a context vectorprotected abstract double getValue(ContextVector source, ContextVector target, Explanation explainedValue)