m2df

0th

Percentile

Generic function for the computation of clipped second moments

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

Keywords
methods, distribution
Usage
m2df(object, upper)
Arguments
object
object of class "Distribution"
upper
clipping bound
Details

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

Value

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

concept

  • moment
  • functional
  • truncated moment

See Also

m2df-methods, E-methods

Aliases
  • m2df
  • m2df-methods
  • m2df,UnivariateDistribution-method
  • m2df,AbscontDistribution-method
  • m2df,DiscreteDistribution-method
  • m2df,Binom-method
  • m2df,Pois-method
  • m2df,Norm-method
  • m2df,Exp-method
  • m2df,Chisq-method
Examples
# standard normal distribution
N1 <- Norm()
m2df(N1, 0)

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

# absolutely continuous distribution
D1 <- Norm() + Exp() # convolution
m2df(D1, 2)
m2df(D1, Inf)
E(D1, function(x){x^2})
Documentation reproduced from package distrEx, version 1.9, License: GPL (version 2 or later)

Community examples

Looks like there are no examples yet.