as.MixtureDistribution: Coercion to Mixture Distribution

View source: R/Wrapper_MixtureDistribution.R

as.MixtureDistributionR Documentation

Coercion to Mixture Distribution

Description

Helper functions to quickly convert compatible objects to a MixtureDistribution.

Usage

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 March 28, 2022, 1:05 a.m.