create_ball_mapper_object function

Run mapper using a trivial filter, a cover of balls, and no clustering algorithm.

Run mapper using a trivial filter, a cover of balls, and no clustering algorithm.

Run mapper using an ε\varepsilon-net cover (greedily generated) and the 2D inclusion function as a filter.

create_ball_mapper_object(data, dists, eps)

Arguments

  • data: A data frame.
  • dists: A distance matrix for the data frame.
  • eps: A positive real number for your desired ball radius.

Returns

A list of two data frames, one with node data containing ball size, data points per ball, ball tightness, and one with edge data containing sources, targets, and weights representing overlap strength.

Examples

data = data.frame(x = sapply(1:100, function(x) cos(x)), y = sapply(1:100, function(x) sin(x))) eps = .5 create_ball_mapper_object(data, dist(data), eps)
  • Maintainer: George Clare Kennedy
  • License: MIT + file LICENSE
  • Last published: 2025-02-20