Returns a named numeric vector containing all component parameters (flattened) followed by the mixing weights.

# S3 method for class 'mixture'
params(x)

Arguments

x

A mixture object.

Value

A named numeric vector.

Examples

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