Creates an S3 object representing a finite mixture distribution. The density is \(f(x) = \sum_{k=1}^{K} w_k f_k(x)\) where \(f_k\) are the component densities and \(w_k\) 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.