Advanced maths

Persistent homology calculator for a small point cloud

Persistent homology tracks connected components and loops while a distance threshold grows.

Your numbers

2–12 x,y rows.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Persistent homology tracks connected components and loops while a distance threshold grows. This calculator builds the full Euclidean Vietoris–Rips filtration through triangles for a small planar point cloud and reduces its boundary columns over GF(2). It reports positive-length ordinary H0 and H1 intervals using edge length as the filtration parameter.

THE FORMULAt(σ)=max pairwise distance in σ; reduce filtration boundary columns over GF(2) to pair births and deaths.

A worked example

For the four corners of a unit square, four components are born at zero. Three merge at edge length one. The square loop is born at one and dies when diagonals and their triangles enter at sqrt(2), giving H1 interval [1,sqrt(2)). One H0 component survives indefinitely.

Good to know

2–12 distinct planar decimal points, Euclidean edge-length filtration, GF(2), dimensions H0/H1 only. Triangles suffice to determine their deaths; H2 is not reported. Zero-length intervals are omitted and counted. No statistical significance, persistence-based clustering guarantee or higher-dimensional embedding inference.

The filtration parameter is an edge threshold

At threshold t, an edge enters when its endpoint distance is at most t. A triangle enters when all three edges have entered, so its filtration value is the maximum of the three pairwise distances. This defines a Vietoris–Rips complex rather than a union-of-balls or Čech construction.

Some sources use a ball-radius parameter and compare edges to twice that radius. The resulting diagrams differ by a factor of two on the horizontal axis. This page follows the edge-length convention throughout its worked example and output table, preventing an apparent disagreement caused only by an unstated scale convention.

A square loop is born at edge length one and filled at square root two01√2H1
The four square corners give three finite H0 intervals [0,1), one infinite H0 interval, and one H1 interval [1,sqrt(2)). The filtration uses edge lengths, not half-length ball radii. Zero-duration tie intervals are omitted.

The Finite topological space property checker covers a related task. This page focuses on persistent homology calculator for a small point cloud with the method limits and worked example described below.

Faces must precede cofaces at equal times

The filtration is sorted by threshold, then simplex dimension, so an edge or triangle never appears before its boundary faces. Tied distances are common in symmetric point clouds such as the square. A deterministic ordering within those ties supports reproducible reduction without treating a temporary within-tie feature as a positive-duration geometric event.

The reduction adds earlier boundary columns modulo two until each surviving pivot is unique. A zero column creates a homology class; a later pivot can pair that birth with a death. Intervals whose birth and death thresholds coincide have zero length, so the page counts but omits them from the displayed positive-length barcode table.

A surviving component is different from a persistent loop

The full finite point cloud eventually becomes connected, leaving one ordinary H0 interval with infinite death. The square’s H1 class has finite death because triangles fill its loop when the diagonal scale is reached. An infinite H0 interval is therefore expected and is not a failure to finish the computation.

The topology checker for a finite topological space studies a supplied discrete space under different definitions. Here topology changes across a metric filtration built from coordinates. A long interval may motivate further analysis, but this calculator does not label it statistically significant without a sampling model or uncertainty analysis.

A few questions, answered

Why is one H0 death infinite?

The final connected component remains present at every larger threshold in ordinary homology.

Does the threshold mean ball radius?

No. It is the maximum allowed edge length; ball-radius conventions can differ by a factor of two.

Find your calculator

Start typing to explore the library.