= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
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
.
'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.
val stateless : (RNG.t -> 'a) -> ('a -> Log_space.t) -> 'a t
Create a distribution from a sampler and a log-density.
val kernel : 'a -> ('a -> RNG.t -> 'a) -> ('a -> 'a -> Log_space.t) -> 'a t
Create a kernel from an initial point, a kernel and its associated log-density.
Helpers for parameterized distributions and kernels.
val dist0 : (RNG.t -> 'a) -> ('a -> Log_space.t) -> 'a t
val dist1 : ('a -> RNG.t -> 'b) -> ('a -> 'b -> Log_space.t) -> 'a -> 'b t
val dist2 :
('a -> 'b -> RNG.t -> 'c) ->
('a -> 'b -> 'c -> Log_space.t) ->
'a ->
'b ->
'c t
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
.