mixture
R/mixture.R
print.mixture.Rd
Print a mixture object.
# S3 method for class 'mixture' print(x, ...)
A mixture object.
Additional arguments (not used).
x, invisibly.
x
m <- mixture(list(normal(0, 1), normal(5, 1)), c(0.5, 0.5)) print(m) #> Mixture distribution (2 components) #> [w=0.500] Normal distribution (mu = 0, var = 1) #> [w=0.500] Normal distribution (mu = 5, var = 1)