lppl  v2.0.0

◆ observe()

template<typename D , typename V , typename... Ts>
V observe ( record_t< DTypes< Ts... >> &  r,
std::string  address,
dist,
value 
)

Scores the passed value against the distribution, storing the result in the record at the specified address.

Template Parameters
DThe type of distribution from which to sample
VThe value type
TsThe distribution types contained in the passed record
Parameters
rthe record into which to store the scored value
addressthe address at which to store the scored value
distthe distribution against which to score values
vthe value to be scored against the distribution
Returns
V the scored value