get_clusters function

Perform the clustering step in mapper

Perform the clustering step in mapper

This function processes the binned data and global distance matrix to return freshly clustered data.

get_clusters(bins, dists, clusterer)

Arguments

  • bins: A list containing "bins" of vectors of names of data points.
  • dists: A distance matrix containing pairwise distances between named data points.
  • clusterer: A function which accepts a list of distance matrices as input, and returns the results of clustering done on each distance matrix.

Returns

The output of clusterer applied to a list of distance matrices, which should be a list containing named vectors (one per bin), whose names are data point names and whose values are cluster labels.

  • Maintainer: George Clare Kennedy
  • License: MIT + file LICENSE
  • Last published: 2025-02-20