using TDAmapper
import GeometricDatasets as gd
= gd.sphere(1000, dim = 2); X
8 Ball mapper
8.1 The Vietoris-Rips complex
Another way to reduce the complexity of a metric space is to approximate it by a simplicial complex. Simplicial complexes are like small building blocks glued together, each of these blocks a small representative of an
The Vietoris-Rips complex is build as follows: given a metric space
that is: the points of
where
8.2 The ball mapper
The ball mapper is clearly inspired by the Vietoris-Rips complex. Given a metric space
The ball mapper then can be seen as the 1-skeleton of the Vietoris-Rips, but create using balls whose center can only be the elements indexed by
To exemplify, consider a circle
Check that it is indeed a circle:
using CairoMakie
scatter(X)
Now take
= rand(1:1000, 100)
L = ball_mapper(X, L, ϵ = 0.5); mp
mapper_plot(mp)
That’s quite a circle!