emcee.utils module

class emcee.utils.MH_proposal_axisaligned(stdev)[source]

Bases: object

A Metropolis-Hastings proposal, with axis-aligned Gaussian steps, for convenient use as the mh_proposal option to EnsembleSampler.sample() .

emcee.utils.sample_ball(p0, std, size=1)[source]

Produce a ball of walkers around an initial parameter value.

Parameters:
  • p0 – The initial parameter value.

  • std – The axis-aligned standard deviation.

  • size – The number of samples to produce.