Learn R Programming

mappeR (version 2.0.2)

create_ball_mapper_object: 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)

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.

Arguments

data

A data frame.

dists

A distance matrix for the data frame.

eps

A positive real number for your desired ball radius.

Examples

Run this code
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)

Run the code above in your browser using DataLab