Computes the persistent cohomology of a filtered complex.
More...
template<class FilteredComplex, class CoefficientField>
class Gudhi::persistent_cohomology::Persistent_cohomology< FilteredComplex, CoefficientField >
Computes the persistent cohomology of a filtered complex.
The computation is implemented with a Compressed Annotation Matrix (CAM)[9], and is adapted to the computation of Multi-Field Persistent Homology (MF) [6] .
- Examples:
- Alpha_complex/alpha_complex_3d_persistence.cpp, Alpha_complex/alpha_complex_persistence.cpp, Bitmap_cubical_complex/cubical_complex_persistence.cpp, Bitmap_cubical_complex/periodic_cubical_complex_persistence.cpp, Bitmap_cubical_complex/Random_bitmap_cubical_complex.cpp, Bottleneck_distance/alpha_rips_persistence_bottleneck_distance.cpp, Persistent_cohomology/custom_persistence_sort.cpp, Persistent_cohomology/persistence_from_file.cpp, Persistent_cohomology/persistence_from_simple_simplex_tree.cpp, Persistent_cohomology/plain_homology.cpp, Persistent_cohomology/rips_multifield_persistence.cpp, Persistent_cohomology/rips_persistence_step_by_step.cpp, Persistent_cohomology/rips_persistence_via_boundary_matrix.cpp, Rips_complex/rips_distance_matrix_persistence.cpp, Rips_complex/rips_persistence.cpp, Witness_complex/example_nearest_landmark_table.cpp, Witness_complex/strong_witness_persistence.cpp, and Witness_complex/weak_witness_persistence.cpp.
◆ Persistent_cohomology()
template<class FilteredComplex, class CoefficientField>
Initializes the Persistent_cohomology class.
- Parameters
-
[in] | cpx | Complex for which the persistent homology is computed. cpx is a model of FilteredComplex |
[in] | persistence_dim_max | if true, the persistent homology for the maximal dimension in the complex is computed. If false, it is ignored. Default is false. |
- Exceptions
-
std::out_of_range | In case the number of simplices is more than Simplex_key type numeric limit. |
◆ betti_number()
template<class FilteredComplex, class CoefficientField>
Returns the Betti number of the dimension passed by parameter.
- Parameters
-
[in] | dimension | The Betti number dimension to get. |
- Returns
- Betti number of the given dimension
- Examples:
- Persistent_cohomology/plain_homology.cpp.
◆ betti_numbers()
template<class FilteredComplex, class CoefficientField>
◆ compute_persistent_cohomology()
template<class FilteredComplex, class CoefficientField>
◆ get_persistent_pairs()
template<class FilteredComplex, class CoefficientField>
◆ intervals_in_dimension()
template<class FilteredComplex, class CoefficientField>
Returns persistence intervals for a given dimension.
- Parameters
-
[in] | dimension | Dimension to get the birth and death pairs from. |
- Returns
- A vector of persistence intervals (birth and death) on a fixed dimension.
◆ output_diagram()
template<class FilteredComplex, class CoefficientField>
◆ persistent_betti_number()
template<class FilteredComplex, class CoefficientField>
Returns the persistent Betti number of the dimension passed by parameter.
- Parameters
-
[in] | dimension | The Betti number dimension to get. |
[in] | from | The persistence birth limit to be added in the number \((persistent birth \leq from)\). |
[in] | to | The persistence death limit to be added in the number \((persistent death > to)\). |
- Returns
- Persistent Betti number of the given dimension
- Examples:
- Persistent_cohomology/custom_persistence_sort.cpp.
◆ persistent_betti_numbers()
template<class FilteredComplex, class CoefficientField>
Returns the persistent Betti numbers.
- Parameters
-
[in] | from | The persistence birth limit to be added in the number \((persistent birth \leq from)\). |
[in] | to | The persistence death limit to be added in the number \((persistent death > to)\). |
- Returns
- A vector of persistent Betti numbers.
The documentation for this class was generated from the following file: