A mixture distribution is the distribution of a random variable
defined in the following way: first, a random variable is selected
from components according to the probabilities given by weights, then
the selected random variable is realized.
Parameters:
componentssequence of ContinuousDistribution
The underlying instances of ContinuousDistribution.
All must have scalar shape parameters (if any); e.g., the pdf evaluated
at a scalar argument must return a scalar.
weightssequence of floats, optional
The corresponding probabilities of selecting each random variable.
Must be non-negative and sum to one. The default behavior is to weight
all components equally.
Attributes:
componentssequence of ContinuousDistribution
The underlying instances of ContinuousDistribution.
weightsndarray
The corresponding probabilities of selecting each random variable.