23 #ifndef INCLUDE_STRONG_WITNESS_COMPLEX_INTERFACE_H_ 24 #define INCLUDE_STRONG_WITNESS_COMPLEX_INTERFACE_H_ 26 #include <gudhi/Simplex_tree.h> 27 #include <gudhi/Strong_witness_complex.h> 29 #include "Simplex_tree_interface.h" 38 namespace witness_complex {
40 class Strong_witness_complex_interface {
41 using Nearest_landmark_range = std::vector<std::pair<std::size_t, double>>;
42 using Nearest_landmark_table = std::vector<Nearest_landmark_range>;
45 Strong_witness_complex_interface(
const Nearest_landmark_table& nlt) {
49 ~Strong_witness_complex_interface() {
50 delete witness_complex_;
53 void create_simplex_tree(Simplex_tree_interface<>* simplex_tree,
double max_alpha_square,
54 std::size_t limit_dimension) {
55 witness_complex_->
create_complex(*simplex_tree, max_alpha_square, limit_dimension);
56 simplex_tree->initialize_filtration();
59 void create_simplex_tree(Simplex_tree_interface<>* simplex_tree,
60 double max_alpha_square) {
61 witness_complex_->create_complex(*simplex_tree, max_alpha_square);
62 simplex_tree->initialize_filtration();
73 #endif // INCLUDE_STRONG_WITNESS_COMPLEX_INTERFACE_H_ bool create_complex(SimplicialComplexForWitness &complex, double max_alpha_square, Landmark_id limit_dimension=std::numeric_limits< Landmark_id >::max()) const
Outputs the strong witness complex of relaxation 'max_alpha_square' in a simplicial complex data stru...
Definition: Strong_witness_complex.h:96
Definition: SimplicialComplexForAlpha.h:26
Constructs strong witness complex for given sets of witnesses and landmarks in Euclidean space...
Definition: Euclidean_strong_witness_complex.h:47