summaryrefslogtreecommitdiff
path: root/matching/include/matching_distance.hpp
diff options
context:
space:
mode:
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);