From e55f13fd26b9e7ff5b4b395500baa2c9a0c822b9 Mon Sep 17 00:00:00 2001 From: Stefan Hahmann Date: Wed, 25 Oct 2023 09:21:58 +0200 Subject: [PATCH] Add TODO re standardizing cost function --- .../mamut/treesimilarity/ZhangUnorderedTreeEditDistance.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/mastodon/mamut/treesimilarity/ZhangUnorderedTreeEditDistance.java b/src/main/java/org/mastodon/mamut/treesimilarity/ZhangUnorderedTreeEditDistance.java index 6b4456932..4746cabc1 100644 --- a/src/main/java/org/mastodon/mamut/treesimilarity/ZhangUnorderedTreeEditDistance.java +++ b/src/main/java/org/mastodon/mamut/treesimilarity/ZhangUnorderedTreeEditDistance.java @@ -238,6 +238,8 @@ private static Double defaultCostFunction( Double o1, Double o2 ) else if ( o1 == null ) return o2; else + // TODO: standardize the cost function? + // return Math.abs( o1 - o2) / (o1 + o2); return Math.abs( o1 - o2 ); }