Documentation of 'smile.taxonomy.TaxonomicDistance' Java class
TaxonomicDistance
smile.taxonomy

Class TaxonomicDistance

  • All Implemented Interfaces:
    Distance<Concept>


    public class TaxonomicDistance
    extends java.lang.Object
    implements Distance<Concept>
    The distance between concepts in a taxonomy. The distance between two concepts a and b is defined by the length of the path from a to their lowest common ancestor and then to b.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TaxonomicDistance

        public TaxonomicDistance(Taxonomy taxonomy)
        Constructor.
        Parameters:
        taxonomy - the taxonomy that this distance is associated with.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • d

        public double d(java.lang.String x,
                        java.lang.String y)
        Compute the distance between two concepts in a taxonomy.
      • d

        public double d(Concept x,
                        Concept y)
        Compute the distance between two concepts in a taxonomy.
        Specified by:
        d in interface Distance<Concept>

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.