template<typename D , typename RNG , template< typename > class Policy, typename I , typename... Ts>
DSType<D> sample_u |
( |
record_t< DTypes< Ts... >> & |
r, |
|
|
std::string |
address, |
|
|
typed_map< Policy, I, Ts... > & |
map_, |
|
|
RNG & |
rng |
|
) |
| |
Sample a value from the addressed distribution in the typed_map
For example,
auto loc = sample_u<Normal>(r, "loc", input, rng);
corresponds to the semantics "sample the value for "loc" from the distribution contained
in the map; my prior belief is that that distribution is Normal".