R/MGFexponential.R
MGFexponential.Rd
Evaluate the moment generating function (MGF) of the exponential distribution or a derivative of the MGF
MGFexponential(x, rate, deriv = 0)
The number resulting from the function evaluation
# MGF of an exponential distribution, evaluated at -0.1:
MGFexponential(-0.1, rate = 0.05)
#> [1] 0.3333333
# Second moment of the distribution (second derivative evaluated at zero):
MGFexponential(0, rate = 0.05, deriv = 2)
#> [1] 800