create_ball_mapper_object: Run mapper using a trivial filter, a cover of balls, and no...

View source: R/baskin_robbins.R

create_ball_mapper_objectR Documentation

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

Description

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

Usage

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.

Value

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)

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