Generic Function for the Computation of Clipped First Moments
Generic function for the computation of clipped first moments.
The moments are clipped at upper
.
m1df(object, upper, ...) ## S4 method for signature 'AbscontDistribution' m1df(object, upper, lowerTruncQuantile = getdistrExOption("m1dfLowerTruncQuantile"), rel.tol = getdistrExOption("m1dfRelativeTolerance"), ...)
object |
object of class |
upper |
clipping bound |
rel.tol |
relative tolerance for |
lowerTruncQuantile |
lower quantile for quantile based integration range. |
... |
additional arguments to |
The precision of the computations can be controlled via
certain global options; cf. distrExOptions
.
The first moment of object
clipped at upper
is computed.
uses call E(object, upp=upper, ...)
.
clipped first moment
for absolutely continuous univariate distributions which is
computed using integrate
.
clipped first moment
for discrete univariate distributions which is computed
using support
and sum
.
clipped first moment
for affine linear distributions which is computed on basis of
slot X0
.
clipped first moment
for Binomial distributions which is computed using pbinom
.
clipped first moment
for Poisson distributions which is computed using ppois
.
clipped first moment
for normal distributions which is computed using dnorm
and pnorm
.
clipped first moment
for exponential distributions which is computed using pexp
.
clipped first moment
for Chi^2 distributions which is computed using pchisq
.
Matthias Kohl Matthias.Kohl@stamats.de
# standard normal distribution N1 <- Norm() m1df(N1, 0) # Poisson distribution P1 <- Pois(lambda=2) m1df(P1, 3) m1df(P1, 3, fun = function(x)sin(x)) # absolutely continuous distribution D1 <- Norm() + Exp() # convolution m1df(D1, 2) m1df(D1, Inf) E(D1)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.