diff options
author | Gard Spreemann <gspreemann@gmail.com> | 2018-09-09 05:51:46 +0200 |
---|---|---|
committer | Gard Spreemann <gspreemann@gmail.com> | 2018-09-09 05:51:46 +0200 |
commit | 75d365e9df3b9c25f48a475a53188668b5cd2951 (patch) | |
tree | 3906301decc85aeaedf90e140550f5836a6e7fac /include/gudhi/Bottleneck.h | |
parent | 41482b4260b4aff3d6803e340d5c94fbefb9af67 (diff) | |
parent | ef5c01b599c6a6b23b1f3e92736ec67a6e62b55f (diff) |
Merge branch 'upstream/latest' into dfsg/latest
Diffstat (limited to 'include/gudhi/Bottleneck.h')
-rw-r--r-- | include/gudhi/Bottleneck.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gudhi/Bottleneck.h b/include/gudhi/Bottleneck.h index b0fc3949..7a553006 100644 --- a/include/gudhi/Bottleneck.h +++ b/include/gudhi/Bottleneck.h @@ -36,7 +36,7 @@ namespace Gudhi { namespace persistence_diagram { -double bottleneck_distance_approx(Persistence_graph& g, double e) { +inline double bottleneck_distance_approx(Persistence_graph& g, double e) { double b_lower_bound = 0.; double b_upper_bound = g.diameter_bound(); const double alpha = std::pow(g.size(), 1. / 5.); @@ -66,7 +66,7 @@ double bottleneck_distance_approx(Persistence_graph& g, double e) { return (b_lower_bound + b_upper_bound) / 2.; } -double bottleneck_distance_exact(Persistence_graph& g) { +inline double bottleneck_distance_exact(Persistence_graph& g) { std::vector<double> sd = g.sorted_distances(); long lower_bound_i = 0; long upper_bound_i = sd.size() - 1; |