persim.wasserstein_matching

persim.wasserstein_matching(I1, I2, matchidx, palette=None, labels=['dgm1', 'dgm2'], colors=None, ax=None)[source]

Visualize bottleneck matching between two diagrams

Parameters
  • I1 (array) – A diagram

  • I2 (array) – A diagram

  • matchidx (tuples of matched indices) – if input matching=True, then return matching

  • labels (list of strings) – names of diagrams for legend. Default = [“dgm1”, “dgm2”],

  • ax (matplotlib Axis object) – For plotting on a particular axis.

Examples

bn_matching, (matchidx, D) = persim.wasserstien(A_h1, B_h1, matching=True) persim.wasserstein_matching(A_h1, B_h1, matchidx, D)