| 1 | /* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT. |
| 2 | * See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details. |
| 3 | * Author: François Godi |
| 4 | * |
| 5 | * Copyright (C) 2015 Inria |
| 6 | * |
| 7 | * Modification(s): |
| 8 | * - YYYY/MM Author: Description of the modification |
| 9 | */ |
| 10 | |
| 11 | #ifndef CONCEPT_BOTTLENECK_DISTANCE_PERSISTENCE_DIAGRAM_H_ |
| 12 | #define CONCEPT_BOTTLENECK_DISTANCE_PERSISTENCE_DIAGRAM_H_ |
| 13 | |
| 14 | namespace Gudhi { |
| 15 | |
| 16 | namespace persistence_diagram { |
| 17 | |
| 18 | /** \brief Concept of point in a persistence diagram. std::get<0>(point) must return the birth of the corresponding component and std::get<1>(point) its death. |
| 19 | * Both should be convertible to `double`. |
| 20 | * A valid implementation of this concept is std::pair<double,double>. |
| 21 | * Death should be larger than birth, death can be std::numeric_limits<double>::infinity() for components which stay alive. |
| 22 | * |
| 23 | * \ingroup bottleneck_distance |
| 24 | */ |
| 25 | struct DiagramPoint{}; |
| 26 | |
| 27 | /** \brief Concept of persistence diagram. It is a range of `DiagramPoint`. |
| 28 | * std::begin(diagram) and std::end(diagram) must return corresponding iterators. |
| 29 | * |
| 30 | * \ingroup bottleneck_distance |
| 31 | */ |
| 32 | struct PersistenceDiagram{}; |
| 33 | |
| 34 | } // namespace persistence_diagram |
| 35 | |
| 36 | } // namespace Gudhi |
| 37 | |
| 38 | #endif // CONCEPT_BOTTLENECK_DISTANCE_PERSISTENCE_DIAGRAM_H_ |