as.MixtureDistribution: Coercion to Mixture Distribution

Description Usage Arguments

View source: R/Wrapper_MixtureDistribution.R

Description

Helper functions to quickly convert compatible objects to a MixtureDistribution.

Usage

1
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.


distr6 documentation built on Sept. 6, 2021, 9:10 a.m.