#8 support weighted index distributions

닫힘
j3tracey1 년 전을 오픈 · 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
로그인하여 이 대화에 참여
레이블 없음
마일스톤 없음
담당자 없음
참여자 1명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.