extract_single_dist | R Documentation |
<dist_spec>
extract_single_dist(x, i)
x |
A composite |
i |
The index to extract |
A single dist_spec
object
dist1 <- LogNormal(mean = 1.6, sd = 0.5, max = 20)
# An uncertain gamma distribution with mean 3 and sd 2
dist2 <- Gamma(
mean = Normal(3, 0.5), sd = Normal(2, 0.5), max = 20
)
# Multiple distributions
## Not run:
dist <- dist1 + dist2
extract_single_dist(dist, 2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.