mvtsa.clustering.neighborhood_preservation#

mvtsa.clustering.neighborhood_preservation(trajectories, k=5)[source]#

Mean Jaccard similarity of the k-nearest-neighbour sets of every pair of objects along time.

trajectories is an array (N, T, d) of N objects observed at T times in a d-dimensional phase space. Entry (i, j) is the fraction of time steps at which j is among the k nearest neighbours of i (symmetrized), a measure of how persistently two objects move together.