summaryrefslogtreecommitdiff
path: root/matching/include/matching_distance.hpp
diff options
context:
space:
mode:
authorGard Spreemann <gspr@nonempty.org>2021-08-14 18:32:59 +0200
committerGard Spreemann <gspr@nonempty.org>2021-08-14 18:32:59 +0200
commit66702d9cf122703964dbe22319ae8d97424d496f (patch)
tree08681d5c5b5878ed4283d5fba2cbb8f4612dbf7c /matching/include/matching_distance.hpp
parent069338dfb03b4d04c1410b3e24b762b18db5c233 (diff)
parent2ed9afc052bee7956f6abb195947de1f80cb9d91 (diff)
Merge branch 'upstream/latest' into dfsg/latest
Diffstat (limited to 'matching/include/matching_distance.hpp')
-rw-r--r--matching/include/matching_distance.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/matching/include/matching_distance.hpp b/matching/include/matching_distance.hpp
index f7f44a5..9beab1f 100644
--- a/matching/include/matching_distance.hpp
+++ b/matching/include/matching_distance.hpp
@@ -362,6 +362,7 @@ namespace md {
// TODO: think about this - how to call Hera
auto dgm_a = module_a_.weighted_slice_diagram(line);
auto dgm_b = module_b_.weighted_slice_diagram(line);
+
R result;
if (params_.hera_epsilon > static_cast<R>(0)) {
result = hera::bottleneckDistApprox(dgm_a, dgm_b, params_.hera_epsilon) / ( params_.hera_epsilon + 1);