template<typename D , typename V , typename... Ts>
V observe |
( |
record_t< DTypes< Ts... >> & |
r, |
|
|
std::string |
address, |
|
|
D |
dist, |
|
|
V |
value |
|
) |
| |
Scores the passed value against the distribution, storing the result in the record at the specified address.
- Template Parameters
-
D | The type of distribution from which to sample |
V | The value type |
Ts | The distribution types contained in the passed record |
- Parameters
-
r | the record into which to store the scored value |
address | the address at which to store the scored value |
dist | the distribution against which to score values |
v | the value to be scored against the distribution |
- Returns
- V the scored value