distrEx (version 2.0.2)

m1df: Generic Function for the Computation of Clipped First Moments

Description

Generic function for the computation of clipped first moments. The moments are clipped at upper.

Usage

m1df(object, upper)

Arguments

object
object of class "Distribution"
upper
clipping bound

Value

  • The first moment of object clipped at upper is computed.

concept

  • functional
  • truncated moment
  • moment

Details

The precision of the computations can be controlled via certain global options; cf. distrExOptions.

See Also

distrExIntegrate, m2df, E

Examples

Run this code
# standard normal distribution
N1 <- Norm()
m1df(N1, 0)

# Poisson distribution
P1 <- Pois(lambda=2)
m1df(P1, 3)

# absolutely continuous distribution
D1 <- Norm() + Exp() # convolution
m1df(D1, 2)
m1df(D1, Inf)
E(D1)

Run the code above in your browser using DataCamp Workspace