summaryrefslogtreecommitdiff
path: root/src/Bottleneck_distance/concept
diff options
context:
space:
mode:
Diffstat (limited to 'src/Bottleneck_distance/concept')
-rw-r--r--src/Bottleneck_distance/concept/Persistence_diagram.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Bottleneck_distance/concept/Persistence_diagram.h b/src/Bottleneck_distance/concept/Persistence_diagram.h
index 4c69343c..1ab768ba 100644
--- a/src/Bottleneck_distance/concept/Persistence_diagram.h
+++ b/src/Bottleneck_distance/concept/Persistence_diagram.h
@@ -27,23 +27,22 @@ namespace Gudhi {
namespace bottleneck_distance {
-/** \brief Concept of persistence diagram point. The double first is the birth of the component and the double second is the death of the component.
+/** \brief Concept of persistence diagram point. get<0>() must return the birth of the component and get<1>() its death.
*
* \ingroup bottleneck_distance
*/
struct Diagram_point{
- double first;
- double second;
+ double get<int>();
};
-/** \brief Concept of persistence diagram.
+/** \brief Concept of persistence diagram. It's a range of Diagram_point.
*
* \ingroup bottleneck_distance
*/
struct Persistence_Diagram
{
- const_iterator<Diagram_point> cbegin() const;
- const_iterator<Diagram_point> cend() const;
+ const_iterator<Diagram_point> begin();
+ const_iterator<Diagram_point> end();
};
} // namespace bottleneck_distance