Helper functions to quickly convert compatible objects to a MixtureDistribution.

as.MixtureDistribution(object, weights = "uniform")

Arguments

object

ProductDistribution or VectorDistribution

weights

(character(1)|numeric())
Weights to use in the resulting mixture. If all distributions are weighted equally then "uniform" provides a much faster implementation, otherwise a vector of length equal to the number of wrapped distributions, this is automatically scaled internally.