#8 support weighted index distributions

Затворено
отворено пре 1 година од j3tracey · 1 коментара
Justin Tracey коментирира пре 1 година

We should support the WeightedAliasIndex distribution. While it's possible the memory usage is sufficiently high and the empirical distributions sufficiently simple that we opt to use a parameterized distribution instead, using the empirical distributions directly will likely be easier to get working, and could be good enough or necessary.

We opt for WeightedAliasIndex instead of WeightedIndex because it supports O(1) sampling instead of O(log n) at the cost of higher initialization, exactly the kind of tradeoff that makes sense in a Shadow experiment.

We should support the [`WeightedAliasIndex`](https://docs.rs/rand_distr/0.4.3/rand_distr/weighted_alias/struct.WeightedAliasIndex.html) distribution. While it's possible the memory usage is sufficiently high and the empirical distributions sufficiently simple that we opt to use a parameterized distribution instead, using the empirical distributions directly will likely be easier to get working, and could be good enough or necessary. We opt for `WeightedAliasIndex` instead of [`WeightedIndex`](https://rust-random.github.io/rand/rand/distributions/struct.WeightedIndex.html) because it supports `O(1)` sampling instead of `O(log n)` at the cost of higher initialization, exactly the kind of tradeoff that makes sense in a Shadow experiment.
Justin Tracey коментирира пре 1 година
Власник

Resolved via ec9d2eb921 and edf8a376f2

Resolved via ec9d2eb921 and edf8a376f2
j3tracey затворено пре 1 година
Пријавите се да се прикључе у овом разговору.
Нема лабеле
Нема фазе
Нема одговорних
1 учесника
Учитавање...
Откажи
Сачувај
Још нема садржаја.