dim.mixture: Dimension of a mixture distribution.

View source: R/mixture.R

dim.mixtureR Documentation

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 class 'mixture'
dim(x)

Arguments

x

A mixture object.

Value

The dimension of the distribution.

Examples

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

algebraic.dist documentation built on Feb. 27, 2026, 5:06 p.m.