public class TaxonomicDistance extends java.lang.Object implements smile.math.distance.Distance<Concept>
| Constructor and Description |
|---|
TaxonomicDistance(Taxonomy taxonomy)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
d(Concept x,
Concept y)
Compute the distance between two concepts in a taxonomy.
|
double |
d(java.lang.String x,
java.lang.String y)
Compute the distance between two concepts in a taxonomy.
|
java.lang.String |
toString() |
public TaxonomicDistance(Taxonomy taxonomy)
taxonomy - the taxonomy that this distance is associated with.