telescopic.initial¶
Initial distributions: where each pair of chains starts.
Classes
The uniform distribution over a set of points, such as the last state of an ensemble. |
|
Multivariate normal initial distribution \(\mathcal N(\mu, \Sigma)\). |
|
Uniform initial distribution on the box |
- telescopic.initial.as_initial(init)¶
Interpret
initas an initial distribution.
- telescopic.initial.draw(initial, generator, ndim=None)¶
One validated draw from
initial: finite, of shape(d,)with d >= 1, or(ndim,).A draw of shape
(1, d), as from a frozenscipy.stats.dirichlet, becomes(d,).- Parameters:
- initialdistribution
An object with
rvs(random_state=generator), asas_initial()returns.- generator
numpy.random.Generator The generator passed to
rvs.- ndim
int, optional The dimension the draw must have; any
d >= 1ifNone.
- Returns:
ndarray, shape (d,)A new array of float64.
- Raises:
- TypeError
If the draw is not real numbers.
- ValueError
If the draw has another shape or is not finite.