Creates an S3 object representing a finite mixture distribution. The density is f(x)=∑Kk=1wkfk(x) where fk are the component densities and wk are the mixing weights.
mixture(components, weights)A mixture object with appropriate class hierarchy.
The class hierarchy is determined by the components: if all components are univariate (or multivariate, continuous, discrete), the mixture inherits those classes as well.