View source: R/convolution_comb.R
add_total | R Documentation |
This function returns a DISTRIBUTION
with a new dimension
created by row sum of the dimensions of the distribution.
add_total(p_distribution, p_totalname = "TOTAL")
p_distribution |
an object of class |
p_totalname |
the name of the new dimension |
Only works with multidimensional distributions.
a DISTRIBUTION
John J. Aponte
d1 <- new_DIRICHLET(c(0.2,0.5,0.3))
d2 <- add_total(d1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.