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 e98374e commit c4f243d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions syndiffix/clustering/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,8 @@ class MutableCluster:
def _col_weight(entropy: float) -> float:
return 1.0 + math.sqrt(max(entropy, 1.0))


def _floor_by(n: float, x: float) -> float:
if n == 0.0:
return 0.0
else:
return math.floor(x / n) * n

def _floor_by(value: float, bin_size: float) -> float:
return math.floor(value / bin_size) * bin_size

def _build_clusters(
context: ClusteringContext,
Expand Down

0 comments on commit c4f243d

Please sign in to comment.