Interface Similar<T>

  • All Known Implementing Classes:
    DummyItem

    public interface Similar<T>
    An interface describing things that can have similarity measures.
    • Method Detail

      • similarity

        double similarity​(T other)
        Compute some meaurement of similarity between this object and some other object. Returned similarity values should be in the range [0, 1] where a similarity of 0 means that the two objects are completely different, and a similarity of 1 means they are both the same. Additionally, this operation should be symmetric, that is, a.similarity(b) should equal b.similarity(a).