R/mixture.R

dist_mixture.Rd

dist_mixture(..., weights = numeric())

Distributions to be used in the mixture.

The weight of each distribution passed to ....

...

dist_mixture(dist_normal(0, 1), dist_normal(5, 2), weights = c(0.3, 0.7)) #> <distribution[1]> #> [1] mixture(0.3*N(0, 1), 0.7*N(5, 4))