lppl  v2.0.0

◆ propose()

template<typename D , typename P , typename RNG , typename... Ts>
auto propose ( record_t< DTypes< Ts... >> &  r,
std::string  address,
P &&  dist,
RNG &  rng 
)

Propose a value from distribution of type P into a model node of type D.

This function is intended for use in proposal subclasses only.

Template Parameters
Dthe type of the distribution node in which to store the value
Pthe type from which to sample and score the value
RNGthe type of PRNG used
Tsthe parameterization of the record
Parameters
rthe record in which to store a node_t<D>
addressthe address at which to store the node
distthe distribution from which to sample and score the value; the proposal distribution
rngthe PRNG used
Returns
auto the sampled value