dist_dirac {reservr} | R Documentation |
Dirac (degenerate point) Distribution
Description
A degenerate distribution with all mass at a single point.
Usage
dist_dirac(point = NULL)
Arguments
point |
The point with probability mass 1. |
Details
The parameter can be overridden with
with_params = list(point = ...)
.
Value
A DiracDistribution
object.
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)
d_dirac$sample(2L, list(point = 42.0))
[Package reservr version 0.0.3 Index]