Skip to contents

A degenerate mixing measure such that fam(dirac(theta)) is equivalent to fam(theta). It is a finite_dist with one atom, not a class of its own. Drawing samples from dirac() does not change the state of the pseudorandom number generator.

Usage

dirac(theta)

Arguments

theta

Numeric parameter vector.

Value

A finite_dist with one atom, at theta, of weight 1.

Examples

d <- dirac(theta = c(0.4, 0.35, 0.25))
d
#> <finite_dist>
#>   1 atom in R^3
#>      theta1 theta2 theta3 weight
#> [1,]    0.4   0.35   0.25      1
atoms(d)
#>      [,1] [,2] [,3]
#> [1,]  0.4 0.35 0.25