powered by
Falls back to realize and delegates to conditional.empirical_dist.
realize
conditional.empirical_dist
# S3 method for edist conditional(x, P, ...)
A conditional empirical_dist.
empirical_dist
An edist object.
edist
Predicate function to condition on.
Additional arguments forwarded to the predicate P.
P
# \donttest{ set.seed(1) z <- normal(0, 1) + exponential(1) z_pos <- conditional(z, function(t) t > 2) mean(z_pos) # }
Run the code above in your browser using DataLab