mean.mixture: Mean of a mixture distribution.

View source: R/mixture.R

mean.mixtureR Documentation

Mean of a mixture distribution.

Description

The mean of a mixture is the weighted sum of the component means: E[X] = \sum_k w_k \mu_k.

Usage

## S3 method for class 'mixture'
mean(x, ...)

Arguments

x

A mixture object.

...

Additional arguments (not used).

Value

The mean of the mixture distribution.

Examples

m <- mixture(list(normal(0, 1), normal(10, 1)), c(0.5, 0.5))
mean(m)

algebraic.dist documentation built on Feb. 27, 2026, 5:06 p.m.