TTK
Loading...
Searching...
No Matches
RipsComplex.h
Go to the documentation of this file.
1
25
26#pragma once
27
28#include <Debug.h>
29
30#include <array>
31
32namespace ttk {
33
34 class RipsComplex : virtual public Debug {
35 public:
37
47 int execute(std::vector<SimplexId> &connectivity,
48 std::vector<double> &diameters,
49 std::array<double *const, 3> diamStats,
50 const std::vector<std::vector<double>> &distanceMatrix,
51 double *const density = nullptr) const;
52
53 protected:
62 int computeDiameterStats(const SimplexId nPoints,
63 std::array<double *const, 3> diamStats,
64 const std::vector<SimplexId> &connectivity,
65 const std::vector<double> &cellDiameters) const;
66
74 double *const density,
75 const std::vector<std::vector<double>> &distanceMatrix) const;
76
80 double Epsilon{1.0};
82 double StdDev{1.0};
85 };
86
87} // namespace ttk
Minimalist debugging class.
Definition Debug.h:88
TTK VTK-filter that computes a Rips complex.
Definition RipsComplex.h:34
int computeGaussianDensity(double *const density, const std::vector< std::vector< double > > &distanceMatrix) const
Compute Gaussian density on points.
bool ComputeGaussianDensity
Definition RipsComplex.h:84
int computeDiameterStats(const SimplexId nPoints, std::array< double *const, 3 > diamStats, const std::vector< SimplexId > &connectivity, const std::vector< double > &cellDiameters) const
Compute diameter statistics on points.
int execute(std::vector< SimplexId > &connectivity, std::vector< double > &diameters, std::array< double *const, 3 > diamStats, const std::vector< std::vector< double > > &distanceMatrix, double *const density=nullptr) const
Main entry point.
The Topology ToolKit.
int SimplexId
Identifier type for simplices of any dimension.
Definition DataTypes.h:22