src/Persistent_cohomology/example/persistence_on_a_line.cpp
raw| 1 | #include <gudhi/Persistence_on_a_line.h> |
| 2 | #include <vector> |
| 3 | #include <iostream> |
| 4 | |
| 5 | int main() { |
| 6 | std::vector<float> data{ 0., 1.5, .7, 2.8, 3.1, -1., 2. }; |
| 7 | Gudhi::persistent_cohomology::compute_persistence_of_function_on_line(data, |
| 8 | [](float b, float d){ std::cout << b << ' ' << d << '\n'; }); |
| 9 | } |