package prbnmcn-dagger
Probabilistic programming library
Install
Dune Dependency
Authors
Maintainers
Sources
0.0.1.tar.gz
md5=304d489ed3e9605fcd7fe3f86c2e9dca
sha512=f8f632e381c6b1d111ee8a03e142994f2c59ddabdbb5c3fef86c7c41a95ad4835c4ea4a893fa18e2f6522b92be8fd9b499c12b21a008bc647a85277ba5bccc5e
doc/prbnmcn-dagger/Dagger/Dist/index.html
Module Dagger.Dist
Source
Distributions
A distribution must be sampleable and must be associated to a density w.r.t. some base measure (which is kept implicit).
'a dist
is the type of distributions on the type 'a
.
Source
type 'a kernel = private {
start : 'a;
sample : 'a -> RNG.t -> 'a;
ll : 'a -> 'a -> Log_space.t;
}
'a kernel
is the type of kernels (ie random walks) on the type 'a
.
A "distribution" as understood by this library is either a kernel or a plain distribution.
Create a distribution from a sampler and a log-density.
Create a kernel from an initial point, a kernel and its associated log-density.
Helpers for parameterized distributions and kernels.
Source
val kernel1 :
('a -> 'b -> RNG.t -> 'b) ->
('a -> 'b -> 'b -> Log_space.t) ->
'b ->
'a ->
'b t
Combinators on distributions and kernels.
iid n dist
constructs the n-fold iid distribution where each component is distributed according to dist
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>