From 3695d48240f8bf3b7ac5006ca63fba5b772ce4d6 Mon Sep 17 00:00:00 2001 From: howsoRes <144272317+howsoRes@users.noreply.github.com> Date: Tue, 30 Sep 2025 14:16:58 -0400 Subject: [PATCH 1/2] 24487: Compute DC using harmonic mean --- src/Amalgam/entity/EntityQueriesStatistics.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Amalgam/entity/EntityQueriesStatistics.h b/src/Amalgam/entity/EntityQueriesStatistics.h index 125ec0197..31c83e4d6 100644 --- a/src/Amalgam/entity/EntityQueriesStatistics.h +++ b/src/Amalgam/entity/EntityQueriesStatistics.h @@ -11,8 +11,8 @@ //these macros define the specific algorithm used for aggregation of distance contributions //the geometric mean has been found to be the best combination of performance and mathematical defensibility -// #define DIST_CONTRIBS_HARMONIC_MEAN -#define DIST_CONTRIBS_GEOMETRIC_MEAN +#define DIST_CONTRIBS_HARMONIC_MEAN +// #define DIST_CONTRIBS_GEOMETRIC_MEAN // #define DIST_CONTRIBS_ARITHMETIC_MEAN //#define DIST_CONTRIBS_PROBABILITY_MEAN //this last one is the default if none of the above are defined From 4870ada9295911eb8ca842c24931f02c777d5fed Mon Sep 17 00:00:00 2001 From: howsoRes <144272317+howsoRes@users.noreply.github.com> Date: Tue, 30 Sep 2025 14:18:14 -0400 Subject: [PATCH 2/2] 24487: Compute DC using arithmetic mean --- src/Amalgam/entity/EntityQueriesStatistics.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Amalgam/entity/EntityQueriesStatistics.h b/src/Amalgam/entity/EntityQueriesStatistics.h index 31c83e4d6..62486d798 100644 --- a/src/Amalgam/entity/EntityQueriesStatistics.h +++ b/src/Amalgam/entity/EntityQueriesStatistics.h @@ -11,9 +11,9 @@ //these macros define the specific algorithm used for aggregation of distance contributions //the geometric mean has been found to be the best combination of performance and mathematical defensibility -#define DIST_CONTRIBS_HARMONIC_MEAN +// #define DIST_CONTRIBS_HARMONIC_MEAN // #define DIST_CONTRIBS_GEOMETRIC_MEAN -// #define DIST_CONTRIBS_ARITHMETIC_MEAN +#define DIST_CONTRIBS_ARITHMETIC_MEAN //#define DIST_CONTRIBS_PROBABILITY_MEAN //this last one is the default if none of the above are defined //#define DIST_CONTRIBS_ENTROPY