powered by
Raw moments, limited moments and moment generating function for the Uniform distribution from min to max.
min
max
munif(order, min = 0, max = 1) levunif(limit, min = 0, max =1, order = 1) mgfunif(t, min = 0, max = 1, log = FALSE)
munif gives the \(k\)th raw moment,
munif
levunif gives the \(k\)th moment of the limited random variable, and
levunif
mgfunif gives the moment generating function in t.
mgfunif
t
Invalid arguments will result in return value NaN, with a warning.
NaN
order of the moment.
lower and upper limits of the distribution. Must be finite.
limit of the random variable.
numeric vector.
logical; if TRUE, the cumulant generating function is returned.
TRUE
Vincent Goulet vincent.goulet@act.ulaval.ca, Christophe Dutang
The \(k\)th raw moment of the random variable \(X\) is \(E[X^k]\), the \(k\)th limited moment at some limit \(d\) is \(E[\min(X, d)^k]\) and the moment generating function is \(E[e^{tX}]\).
https://en.wikipedia.org/wiki/Uniform_distribution_%28continuous%29
Uniform.
Uniform
munif(-1) munif(1:5) levunif(3, order=1:5) levunif(3, 2, 4) mgfunif(1, 1, 2)
Run the code above in your browser using DataLab