bilby.core.sampler.proposal.EnsembleStretch

class bilby.core.sampler.proposal.EnsembleStretch(scale=2.0, priors=None)[source]

Bases: JumpProposal

__init__(scale=2.0, priors=None)[source]

Stretch move. Calculates the log Jacobian which can be used in cpnest to bias future moves.

Parameters:
scale: float, optional

Stretching scale. Default is 2.0.

__call__(sample, **kwargs)[source]

A generic wrapper for the jump proposal function

Parameters:
args: Arguments that are going to be passed into the proposal function
kwargs: Keyword arguments that are going to be passed into the proposal function
Returns:
dict: A dictionary with the new samples. Boundary conditions are applied.

Methods

__init__([scale, priors])

Stretch move.