Skip to contents

Atoms of a distribution

Usage

atoms(x)

Arguments

x

A distribution over a parameter space.

Value

(C, d) numeric matrix, one atom per row.

Examples

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