diff options
author | fgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-11-23 16:57:49 +0000 |
---|---|---|
committer | fgodi <fgodi@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-11-23 16:57:49 +0000 |
commit | 5bd04a9433462965aecf000e5044e70405e968ff (patch) | |
tree | a507b919414a0cbfec3719a05cb54e8a4473e2c5 /src/Bottleneck_distance/concept | |
parent | 33ce062bf29b9bb7db9e83cde39cab6411d613dc (diff) |
fix
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/bottleneck_integration@1780 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 9001cd1b33dfea3b34e5d12ef8e20b5624a50ba9
Diffstat (limited to 'src/Bottleneck_distance/concept')
-rw-r--r-- | src/Bottleneck_distance/concept/Persistence_diagram.h | 11 |
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 |