The scale convention and the filtration cap
The literature usually defines the Vietoris–Rips complex with a distance threshold r. This page uses r = 2ε so that edges appear exactly when the drawn ε-balls touch, which keeps the picture and the parameter consistent: filtration(σ) = max d(xᵢ, xⱼ) / 2.
The filtration stops at ε_max = ½ · minₓ maxᵧ d(x, y). At that scale one point is joined to every other point, the complex is a cone with that apex and therefore contractible, and no bar can die later. The cut is exact rather than a numerical ceiling.
How the barcode is computed
Vertices, edges, triangles and tetrahedra are enumerated by dimension, each ordered by filtration value. Reduction only adds columns of the same dimension, with row and column orders induced by a global filtration order, so dimensions can be processed separately. Concatenating dimension blocks is not itself a global scale order.
Reduction is the standard column algorithm over GF(2) (Zomorodian–Carlsson 2005). A column that reduces to a nonzero chain pairs its lowest row with itself as (birth, death); a column that reduces to zero leaves an unpaired positive simplex. Apparent pairs in Ripser's sense are paired directly without elimination.
H₀ uses union-find with the elder rule and records which points each component absorbed, so clicking an H₀ bar highlights that set. The representative 1-cycle of an H₁ bar is the support of the reduced triangle column: one generating set produced by the reduction, not a unique one.
Measured results for the four templates
The table below is measured at σ = 0 with maxDim = 1; the random templates use the fixed seed 20261112. The longest H₁ interval is the most persistent bar, and the two long bars of the double ring have equal length.
The circle bar persists for 0.778870. The longest persistence in uniform noise is 15.1% of that, and in the planar spiral 21.7%. These are measurements of fixed samples; contractibility of a sheet does not determine the finite-scale barcode of its projected point cloud.
Measured results for the four templates| Cloud | Points | H₁ bars | Longest H₁ interval |
|---|
| Single circle | 36 | 1 | [0.087156, 0.866025] |
| Two rings | 48 | 4 | [0.080926, 0.536936] |
| Uniform noise | 80 | 14 | [0.152377, 0.269845] |
| Swiss roll | 80 | 29 | [0.121256, 0.289937] |
What stability does and does not guarantee
Compare the jittered cloud point by point with the same template at σ = 0; δ is the maximum displacement. Since |d′ − d| ≤ 2δ and f = max d / 2, we have ‖f − g‖∞ ≤ δ, hence d_B ≤ δ for the H₁ diagrams.
At σ = 0.05 the measured displacement is δ = 0.124824 and the bottleneck distance is d_B = 0.090111, inside δ = 0.124824. All six tested settings σ = 0, 0.01, 0.02, 0.05, 0.1, 0.2 satisfy the bound. The bottleneck distance is solved exactly by binary search over candidate thresholds with augmenting-path bipartite matching. The diagonal permits repeated matches, each costing (death − birth)/2; such matches are not free.
A barcode records the lifetime of each homology class; bars spanning two scales count the rank of the persistence map. Jitter can create, shorten or remove bars, so their count need not increase with σ. The threshold ℓ only fades short bars and does not change the computation. Long persistence is not a significance test.
How it works
- 1Pick a template, or edit the cloud directly: click empty space to add a point, click a point to remove it, up to 200 points.
- 2Drag the ε slider, or use the key-scale buttons to land exactly on ε = 0, loop birth, loop death and the filtration cap.
- 3Watch β₀, β₁, β₂ and the edge/triangle counts change together to confirm the complex really is filling in.
- 4Click any barcode row or diagram point to highlight the points and the representative cycle behind that class.
- 5Drag σ to add Gaussian jitter and compare barcode changes with d_B ≤ δ; drag ℓ to fade short bars.