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
-
D | the type of the distribution node in which to store the value |
P | the type from which to sample and score the value |
RNG | the type of PRNG used |
Ts | the parameterization of the record |
- Parameters
-
r | the record in which to store a node_t<D> |
address | the address at which to store the node |
dist | the distribution from which to sample and score the value; the proposal distribution |
rng | the PRNG used |
- Returns
- auto the sampled value