dist_uniform {distributional} | R Documentation |
The Uniform distribution
Description
A distribution with constant density on an interval.
Usage
dist_uniform(min, max)
Arguments
min , max |
lower and upper limits of the distribution. Must be finite. |
Details
We recommend reading this documentation on https://pkg.mitchelloharawild.com/distributional/, where the math will render nicely.
In the following, let be a Poisson random variable with parameter
lambda
= .
Support:
Mean:
Variance:
Probability mass function (p.m.f):
Cumulative distribution function (c.d.f):
Moment generating function (m.g.f):
See Also
Examples
dist <- dist_uniform(min = c(3, -2), max = c(5, 4))
dist
mean(dist)
variance(dist)
skewness(dist)
kurtosis(dist)
generate(dist, 10)
density(dist, 2)
density(dist, 2, log = TRUE)
cdf(dist, 4)
quantile(dist, 0.7)
[Package distributional version 0.4.0 Index]