Sampling & distribution · 9 / 10
Alias Method
前処理した表から重み付き抽選を高速に繰り返す。
Compare in motion
Interactive model
重み付きの粒子種
AReference
種類を同じ確率で選ぶ
BAlias Method100%
多くの粒子を高速に重み付き選択できる
Scrub to pause and inspect. At 0%, B matches A; at 100%, B shows the effect. The scene repeats every 8 seconds.
Look for: エイリアス表から抽選 → 偏りに応じた種類が出る。
This model simplifies the technique to show its use case and effect. Operation counts describe the model; they are not performance measurements.
Read the storyboard
例: 重み付きの粒子種
1. Start
種類ごとの確率
2. Change
エイリアス表から抽選
3. Result
偏りに応じた種類が出る
How it works
1. Input
離散分布の重み
2. Process
エイリアス表を前処理
3. Result
定数時間の重み付き抽選
Further reading
Fast Poisson Disk Sampling in Arbitrary Dimensions ↗A general reference for this subcategory.