Skip to content

Commit

Permalink
Update solver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yoid2000 committed Mar 29, 2024
1 parent 6a6cce6 commit bc9fb52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syndiffix/clustering/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bc9fb52

Please sign in to comment.