jaccard_distance


jaccard_distance, an Octave code which computes the Jaccard distance between two sets.

The Jaccard index of two sets A and B is denoted J(A,B), and is evaluated as |A intersect B| / |A union B|.

The Jaccard distance is 1-J(A,B), which has the usual properties of a distance function.

Licensing:

The computer code and data files described and made available on this web page are distributed under the MIT license

Languages:

jaccard_distance is available in a MATLAB version and an Octave version..

Related Data and Programs:

jaccard_distance_test

octave_distance, an Octave code which estimates the typical distance between a pair of points randomly selected from the surface or interior of a geometric object such as a circle, disk, sphere, cube, and between other nongeometric pairs of items.

Reference:

  1. John D Cook,
    Jaccard index and jazz albums,
    https://www.johndcook.com/blog/2023/07/26/jaccard-jazz/
    Posted 26 July 2023.

Source Code:


Last revised on 14 November 2023.