#include <iostream>
int main() {
std::clog << "********* Minimalistic example of usage of the Filtered_zigzag_persistence class ********" << std::endl;
Zigzag_persistence zp([](Dimension dim, Filtration_value birth, Filtration_value death) {
std::cout << "[" << dim << "] " << birth << " - " << death << std::endl;
});
zp.insert_cell(2, {}, 0, 0.1);
zp.insert_cell(4, {}, 0, 0.1);
zp.insert_cell(5, {2, 4}, 1, 0.3);
zp.insert_cell(3, {}, 0, 0.4);
zp.insert_cell(6, {2, 3}, 1, 0.4);
zp.insert_cell(9, {4, 3}, 1, 1.2);
zp.remove_cell(6, 1.5);
zp.remove_cell(5, 2.0);
zp.get_current_infinite_intervals([](Dimension dim, Filtration_value birth) {
std::cout << "[" << dim << "] " << birth << " - inf" << std::endl;
});
return 0;
}
Class computing the zigzag persistent homology of a zigzag filtration. Algorithm based on zigzag.
Definition filtered_zigzag_persistence.h:442
typename Options::Filtration_value Filtration_value
Definition filtered_zigzag_persistence.h:447
typename Options::Dimension Dimension
Definition filtered_zigzag_persistence.h:448
Contains the implementation of the Gudhi::zigzag_persistence::Default_filtered_zigzag_options structu...