Cube example distance analysis#

import matplotlib.pyplot as plt

import encodermap as em

data, ids = em.misc.random_on_cube_edges(1000, sigma=0.05)

dist_sig_parameters = (0.2, 3, 6, 1, 2, 6)
periodicity = float("inf")

axe = em.plot.distance_histogram(data, periodicity, dist_sig_parameters, bins=50)
plt.show()