Learn R Programming

algebraic.dist (version 0.9.1)

dim.mixture: Dimension of a mixture distribution.

Description

Returns the dimension of the first component (all components are assumed to have the same dimension).

Usage

# S3 method for mixture
dim(x)

Value

The dimension of the distribution.

Arguments

x

A mixture object.

Examples

Run this code
m <- mixture(list(normal(0, 1), normal(5, 1)), c(0.5, 0.5))
dim(m)

Run the code above in your browser using DataLab