Coupling¶
- class telescopic.couplings.Coupling¶
A coupling of the proposals of two chains under one proposal.
Each chain’s proposal must have exactly the law of the proposal’s
sample()from its state, and two chains in equal states must receive identical proposals, withyequal tox, a copy of its rows orxitself, never a recomputation.- abstractmethod couple(target, proposal, state_x, state_y, draws)¶
Draw the coupled proposals of
npairs.- Parameters:
- target
Target The target that the chains sample.
- proposalProposal
The proposal of both chains, one that
supports()accepts.- state_x, state_y
State The first and the second chains of the pairs.
- draws
Draws Random numbers for the
npairs.
- target
- Returns:
- CoupledProposals