Skip to contents

NA for a continuous measure.

Usage

n_atoms(x)

Arguments

x

A distribution over a parameter space.

Value

Integer.

Examples

n_atoms(dirac(theta = c(0.5, 0.5)))
#> [1] 1
n_atoms(finite_dist(atoms = rbind(c(0.6, 0.4), c(0.2, 0.8)), weights = c(0.5, 0.5)))
#> [1] 2