From bc9fb52491d570bc3e245d7790817654a3791a02 Mon Sep 17 00:00:00 2001 From: yoid2000 Date: Fri, 29 Mar 2024 14:27:15 +0100 Subject: [PATCH] Update solver.py --- syndiffix/clustering/solver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syndiffix/clustering/solver.py b/syndiffix/clustering/solver.py index 1dc8a40..a3f23d1 100644 --- a/syndiffix/clustering/solver.py +++ b/syndiffix/clustering/solver.py @@ -19,9 +19,11 @@ class MutableCluster: def _col_weight(entropy: float) -> float: return 1.0 + math.sqrt(max(entropy, 1.0)) + def _floor_by(value: float, bin_size: float) -> float: return math.floor(value / bin_size) * bin_size + def _build_clusters( context: ClusteringContext, max_weight: float,