get_clusters: Perform the clustering step in mapper

View source: R/cluster_factory.R

get_clustersR Documentation

Perform the clustering step in mapper

Description

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

Usage

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.

Value

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.


mappeR documentation built on April 3, 2025, 6:19 p.m.