Type for an interval in a persistent diagram or barcode. Stores the birth, death and dimension of the interval. It can be used as a tuple with get/std::get (birth, death and dimension in this order), std::tuple_element and std::tuple_size, as well as structured binding. More...
#include <gudhi/persistence_interval.h>
Public Member Functions | |
| Persistence_interval (Event_value birth=inf, Event_value death=inf, Dimension dim=-1) | |
| Constructor. | |
| template<std::size_t I> | |
| constexpr auto & | get () &noexcept |
| Specialization of get for Gudhi::persistence_matrix::Persistence_interval. | |
| template<std::size_t I> | |
| constexpr const auto & | get () const &noexcept |
| Specialization of get for Gudhi::persistence_matrix::Persistence_interval. | |
| template<std::size_t I> | |
| constexpr auto && | get () &&noexcept |
| Specialization of get for Gudhi::persistence_matrix::Persistence_interval. | |
| template<std::size_t I> | |
| constexpr const auto && | get () const &&noexcept |
| Specialization of get for Gudhi::persistence_matrix::Persistence_interval. | |
Public Attributes | |
| Dimension | dim |
| Event_value | birth |
| Event_value | death |
Static Public Attributes | |
| static constexpr Event_value | inf |
| Stores the infinity value for birth and death events. Its value depends on the template parameter Event_value: | |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const Persistence_interval &interval) |
| operator<< | |
Type for an interval in a persistent diagram or barcode. Stores the birth, death and dimension of the interval. It can be used as a tuple with get/std::get (birth, death and dimension in this order), std::tuple_element and std::tuple_size, as well as structured binding.
| Dimension | Type of the dimension value. |
| Event_value | Type of the birth and death value. |
|
inline |
|
inlineconstexprnoexcept |
Specialization of get for Gudhi::persistence_matrix::Persistence_interval.
| I | Index of the value to return: 0 for the birth value, 1 for the death value and 2 for the dimension. |
I == 0, the death value if I == 1 or the dimension if I == 2.
|
inlineconstexprnoexcept |
Specialization of get for Gudhi::persistence_matrix::Persistence_interval.
| I | Index of the value to return: 0 for the birth value, 1 for the death value and 2 for the dimension. |
I == 0, the death value if I == 1 or the dimension if I == 2.
|
inlineconstexprnoexcept |
Specialization of get for Gudhi::persistence_matrix::Persistence_interval.
| I | Index of the value to return: 0 for the birth value, 1 for the death value and 2 for the dimension. |
I == 0, the death value if I == 1 or the dimension if I == 2.
|
inlineconstexprnoexcept |
Specialization of get for Gudhi::persistence_matrix::Persistence_interval.
| I | Index of the value to return: 0 for the birth value, 1 for the death value and 2 for the dimension. |
I == 0, the death value if I == 1 or the dimension if I == 2.
|
friend |
operator<<
| stream | outstream |
| interval | interval to stream |
| Event_value Gudhi::persistence_matrix::Persistence_interval< Dimension, Event_value >::birth |
Birth value of the cycle.
| Event_value Gudhi::persistence_matrix::Persistence_interval< Dimension, Event_value >::death |
Death value of the cycle.
| Dimension Gudhi::persistence_matrix::Persistence_interval< Dimension, Event_value >::dim |
Dimension of the cycle.
|
staticconstexpr |
Stores the infinity value for birth and death events. Its value depends on the template parameter Event_value:
Is also used as default value for birth and death attributes when not initialized.