| Summary.dist | R Documentation |
Handles sum(), prod(), min(), max() of distributions.
## S3 method for class 'dist'
Summary(..., na.rm = FALSE)
... |
dist objects |
na.rm |
ignored |
A simplified distribution or edist
# sum() reduces via + operator
z <- sum(normal(0, 1), normal(2, 3))
z # Normal(mu = 2, var = 4)
# min() of exponentials simplifies
w <- min(exponential(1), exponential(2))
w # Exponential(rate = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.