jaccard_distance


jaccard_distance, a MATLAB 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 information on this web page is distributed under the MIT license.

Languages:

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

Related Data and Programs:

jaccard_distance_test

matlab_distance, a MATLAB 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 13 November 2023.