A degenerate distribution with all mass at a single point.
See also
Other Distributions:
Distribution
,
dist_bdegp()
,
dist_beta()
,
dist_binomial()
,
dist_blended()
,
dist_discrete()
,
dist_empirical()
,
dist_erlangmix()
,
dist_exponential()
,
dist_gamma()
,
dist_genpareto()
,
dist_lognormal()
,
dist_mixture()
,
dist_negbinomial()
,
dist_normal()
,
dist_pareto()
,
dist_poisson()
,
dist_translate()
,
dist_trunc()
,
dist_uniform()
,
dist_weibull()
Examples
d_dirac <- dist_dirac(1.5)
d_dirac$sample(2L)
#> [1] 1.5 1.5
d_dirac$sample(2L, list(point = 42.0))
#> [1] 42 42