Learn R Programming

algebraic.dist (version 0.9.1)

params.mixture: Retrieve the parameters of a mixture object.

Description

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

Usage

# S3 method for mixture
params(x)

Value

A named numeric vector.

Arguments

x

A mixture object.

Examples

Run this code
m <- mixture(list(normal(0, 1), normal(5, 2)), c(0.3, 0.7))
params(m)

Run the code above in your browser using DataLab