slice_sampler
-
aquila_borg.samplers.
slice_sampler
(state: aquila_borg._borg.likelihood.MarkovState, callback: object, previous_value: float, step: float) → float Basic slice_sampler implementation.
This implements a slice sampler without rescaling of the stepper.
- Parameters
state (MarkovState) – A markov state with an initialized random number generation
callback (callable) – A callable object, typically a lambda function or a function with one argument
previous_value (float) – Previous value of the slice sampler chain
step (float) – Step to progress through the posterior
- Returns
new position
- Return type
float