Skip to content

Commit

Permalink
FIX: Remove unnecessary code in WeightedUniform
Browse files Browse the repository at this point in the history
  • Loading branch information
Axect committed Aug 3, 2023
1 parent 226fd28 commit 6075312
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/statistics/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,6 @@ impl RNG for WeightedUniform<f64> {
return 0f64;
}
let idx = find_interval(self.intervals(), x);
let (a, b) = self.intervals[idx];
self.weights[idx] / self.sum
}

Expand Down

0 comments on commit 6075312

Please sign in to comment.