function d = jaccard_distance ( A, B )

%*****************************************************************************80
%
%% jaccard_distance() computes the Jaccard distance between two sets.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 November 2023
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    John D Cook,
%    Jaccard index and jazz albums,
%    https://www.johndcook.com/blog/2023/07/26/jaccard-jazz/
%    Posted 26 July 2023.
%
%  Input:
%
%    set A(*), B(*): two sets.
%
%  Output:
%
%    real d: the Jaccard distance between the sets.
%
  d = 1.0 - jaccard_index ( A, B );

  return
end

