Shared population mass accounting. Normalized selection weights and total mass are separate; neither asserts posterior accuracy or unbiased evidence. A zero-mass population has no posterior and cannot be drawn or resampled.
Shared population mass accounting. Normalized selection weights and total mass are separate; neither asserts posterior accuracy or unbiased evidence. A zero-mass population has no posterior and cannot be drawn or resampled.
(from-log xs)(from-log xs log-normalizer)Canonical accounting from raw log weights and an accumulated log normalizer. log-mass is log-normalizer + logmeanexp(raw). A zero-mass state stays explicit.
Canonical accounting from raw log weights and an accumulated log normalizer. log-mass is log-normalizer + logmeanexp(raw). A zero-mass state stays explicit.
(normalize xs)(normalize xs {:keys [zero infinite]})Linear selection weights. Zero or infinite total mass requires an explicit :zero/:infinite :uniform policy (legacy selection inside existing engines).
Linear selection weights. Zero or infinite total mass requires an explicit :zero/:infinite :uniform policy (legacy selection inside existing engines).
(uniform n)(uniform n log-mass)Equal selection weights at the given total log mass.
Equal selection weights at the given total log mass.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |