| mean.mixture | R Documentation |
The mean of a mixture is the weighted sum of the component means:
E[X] = \sum_k w_k \mu_k.
## S3 method for class 'mixture'
mean(x, ...)
x |
A |
... |
Additional arguments (not used). |
The mean of the mixture distribution.
m <- mixture(list(normal(0, 1), normal(10, 1)), c(0.5, 0.5))
mean(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.