diff options
author | Arnur Nigmetov <a.nigmetov@gmail.com> | 2017-04-24 16:49:37 +0600 |
---|---|---|
committer | Arnur Nigmetov <a.nigmetov@gmail.com> | 2017-04-24 16:49:37 +0600 |
commit | bd3300343726981dbb7b7f45d1cabc9d781e28a1 (patch) | |
tree | 1ea381d8265df271fb4215f75ae8b301253d2c18 /geom_matching/wasserstein/include/basic_defs_ws.h | |
parent | 0d3a01257675ee637c09046c739eaa235984b515 (diff) |
Empty diagram bug for Wasserstein fixed
Diffstat (limited to 'geom_matching/wasserstein/include/basic_defs_ws.h')
-rw-r--r-- | geom_matching/wasserstein/include/basic_defs_ws.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/geom_matching/wasserstein/include/basic_defs_ws.h b/geom_matching/wasserstein/include/basic_defs_ws.h index 365c3bd..474af22 100644 --- a/geom_matching/wasserstein/include/basic_defs_ws.h +++ b/geom_matching/wasserstein/include/basic_defs_ws.h @@ -77,6 +77,7 @@ struct DiagramPoint bool isNormal(void) const { return type == NORMAL; } double getRealX() const; // return the x-coord double getRealY() const; // return the y-coord + double persistenceLp(const double p) const; #ifndef FOR_R_TDA friend std::ostream& operator<<(std::ostream& output, const DiagramPoint p); #endif @@ -92,6 +93,7 @@ double sqrDist(const Point& a, const Point& b); double dist(const Point& a, const Point& b); double distLInf(const DiagramPoint& a, const DiagramPoint& b); double distLp(const DiagramPoint& a, const DiagramPoint& b, const double p); +double persistenceLp(const DiagramPoint& a, const double p); template<typename DiagPointContainer> double getFurthestDistance3Approx(DiagPointContainer& A, DiagPointContainer& B) |