pointToBallList: Produce a two column list. The first column contain the...

Description Usage Arguments Value Examples

View source: R/BallMapper.R

Description

Produce a two column list. The first column contain the number of point (possibly with repetitions), the second one contains the number of landmark points that cover it. For example, let us assume that point 1 is covered by landmark 1 and 2, and point 2 is covered by the landmark 2. In this case the obtained list is of a form: 1 1 1 2 2 2 This list can be used for a further analysis of various parts of Ball Mapper graph.

Usage

1
pointToBallList(coverageFromBallMapper)

Arguments

coverageFromBallMapper,

a coverage parameter of an output from BallMapper function

Value

List of landmarks covering each point, as described above.

Examples

1
2
3
4
5
6
var <- seq(from=0,to=6.3,by=0.1)
points <- as.data.frame( cbind( sin(var),cos(var) ) )
values <- as.data.frame( sin(var) )
epsilon <- 0.25
l <- BallMapper(points,values,epsilon)
list <- pointToBallList(l$coverage)

BallMapper documentation built on Aug. 21, 2019, 1:06 a.m.