pulsatrix 1.1.0
Loading...
Searching...
No Matches
topology_views.hpp
Go to the documentation of this file.
1
10#pragma once
11
12#include <string>
13#include <vector>
14
15#include "pulsatrix/viz/svg.hpp"
17
18namespace pulsatrix {
19
23 std::vector<int> dimensions;
26 int max_bars = 40;
28 int grid_points = 200;
29};
30
40[[nodiscard]] std::string RenderPersistenceDiagramSvg(const PersistenceDiagramDocument& doc,
41 const PersistenceViewOptions& view = {},
42 const SvgOptions& options = {});
43
50[[nodiscard]] std::string RenderBarcodeSvg(const PersistenceDiagramDocument& doc, const PersistenceViewOptions& view = {},
51 const SvgOptions& options = {});
52
59[[nodiscard]] std::string RenderBettiCurveSvg(const PersistenceDiagramDocument& doc, const PersistenceViewOptions& view = {},
60 const SvgOptions& options = {});
61
62} // namespace pulsatrix
Definition acquisition_functions.hpp:16
std::string RenderPersistenceDiagramSvg(const PersistenceDiagramDocument &doc, const PersistenceViewOptions &view={}, const SvgOptions &options={})
Birth against death, one point per feature. Points far above the diagonal persist long....
std::string 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....
std::string 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()).
Persistence diagrams of one point cloud, one entry per homology dimension.
Definition topology_documents.hpp:50
Settings shared by the three views.
Definition topology_views.hpp:21
int max_bars
The barcode draws at most this many bars per dimension, the most persistent first,...
Definition topology_views.hpp:26
int grid_points
Scales at which the Betti curve is evaluated.
Definition topology_views.hpp:28
std::vector< int > dimensions
The dimensions to draw; empty for all of them.
Definition topology_views.hpp:23
Dependency-free SVG figures from viz documents: bar, waterfall, heatmap, token strip,...
The persistence diagram document (TDA-9): the features of each homology dimension,...