pulsatrix 1.1.0
Loading...
Searching...
No Matches
topology_views.hpp File Reference

Three views of a persistence diagram document (TDA-9): the persistence diagram, the barcode and the Betti curve. More...

#include <string>
#include <vector>
#include "pulsatrix/viz/svg.hpp"
#include "pulsatrix/viz/topology_documents.hpp"
Include dependency graph for topology_views.hpp:

Go to the source code of this file.

Classes

struct  pulsatrix::PersistenceViewOptions
 Settings shared by the three views. More...
 

Namespaces

namespace  pulsatrix
 

Functions

std::string pulsatrix::RenderPersistenceDiagramSvg (const PersistenceDiagramDocument &doc, const PersistenceViewOptions &view={}, const SvgOptions &options={})
 Birth against death, one point per feature. Points far above the diagonal persist long. A shaded band along the diagonal marks persistence within twice the certified error bound, which the distances' own error could explain. Essential features sit on a dashed line marked ∞. When tests are attached, significant features are filled and the others hollow; a bootstrap band is drawn as a dashed line parallel to the diagonal.
 
std::string pulsatrix::RenderBarcodeSvg (const PersistenceDiagramDocument &doc, const PersistenceViewOptions &view={}, const SvgOptions &options={})
 One bar per feature, from its birth to its death, grouped by dimension and longest first. Each end has a whisker of ±the certified error bound; essential bars end in an arrow. Features that failed an attached test are drawn faint.
 
std::string pulsatrix::RenderBettiCurveSvg (const PersistenceDiagramDocument &doc, const PersistenceViewOptions &view={}, const SvgOptions &options={})
 The Betti curve of each dimension: how many features are alive at each scale (BettiCurve()).
 

Detailed Description

Three views of a persistence diagram document (TDA-9): the persistence diagram, the barcode and the Betti curve.

The figures follow svg.hpp's rules: standalone files, deterministic bytes, no font library. Each dimension has its own color. Every point and bar carries a tooltip (<title>) with its birth, death and, when tested, p-value.