Package elki.distance

Class SharedNearestNeighborJaccardDistance.Instance<T>

    • Method Detail

      • jaccardCoefficient

        protected static double jaccardCoefficient​(DBIDs neighbors1,
                                                   DBIDs neighbors2)
        Compute the Jaccard coefficient
        Parameters:
        neighbors1 - SORTED neighbor ids of first
        neighbors2 - SORTED neighbor ids of second
        Returns:
        Jaccard coefficient
      • distance

        public double distance​(DBIDRef id1,
                               DBIDRef id2)
        Description copied from interface: DistanceQuery
        Returns the distance between the two objects specified by their object ids.
        Parameters:
        id1 - first object id
        id2 - second object id
        Returns:
        the distance between the two objects specified by their object ids