mixture
R/mixture.R
params.mixture.Rd
Returns a named numeric vector containing all component parameters (flattened) followed by the mixing weights.
# S3 method for class 'mixture' params(x)
A mixture object.
A named numeric vector.
m <- mixture(list(normal(0, 1), normal(5, 2)), c(0.3, 0.7)) params(m) #> mu var mu var weight1 weight2 #> 0.0 1.0 5.0 2.0 0.3 0.7