Skip to contents

Convenience accessor returning the ambient dimension \(p\).

Usage

gmm_dim(x)

Arguments

x

A gmm (or gmm_fit) object.

Value

Integer scalar.

Examples

g <- gmm(weights = 1, means = list(c(0, 0)),
         covariances = list(diag(2)))
gmm_dim(g)
#> [1] 2