handle_observe
function handle_observe<Left, Right>(x:Left, p:Right) -> Left
Handle observe event.
- x: Variate.
- p: Distribution.
Returns: x
.
Attention
Typically one does not call this directly, but rather uses the
~>
operator, which is
hard-wired to call this internally.