CompoundDistribution-class is a class to formalize
compound distributions; it is a subclass to
class UnivarMixingDistribution.
Objects can be created by calls of the form
new("CompoundDistribution", ...).
More frequently they are created via the generating function
CompoundDistribution.
NumbOfSummandsDistrObject of class "DiscreteDistribution",
the frequency distribution.
SummandsDistrObject of class "UnivDistrListOrDistribution",
that is, either of class "UnivarDistrList" (non i.i.d. case) or
of class "UnivariateDistribution" (i.i.d. case); the summand distribution(s).
mixCoeffObject of class "numeric": a vector of
probabilities for the mixing components.
mixDistrObject of class "UnivarDistrList": a list of
univariate distributions containing the mixing components; must be of same
length as mixCoeff.
imgObject of class "Reals": the space of the image of this distribution which has dimension 1
and the name "Real Space"
paramObject of class "Parameter": the parameter of this distribution, having only the
slot name "Parameter of a discrete distribution"
rObject of class "function": generates random numbers
dfixed to NULL
pObject of class "function": cumulative distribution function
qObject of class "function": quantile function
.withArithlogical: used internally to issue warnings as to interpretation of arithmetics
.withSimlogical: used internally to issue warnings as to accuracy
.logExactlogical: used internally to flag the case where there are explicit formulae for the log version of density, cdf, and quantile function
.lowerExactlogical: used internally to flag the case where there are explicit formulae for the lower tail version of cdf and quantile function
Symmetryobject of class "DistributionSymmetry";
used internally to avoid unnecessary calculations.
Class "UnivarMixingDistribution"
class "UnivarDistribution" by class "UnivarMixingDistribution",
class "Distribution" by class "UnivariateDistribution".
signature(object = "CompoundDistribution") prints the object
signature(object = "CompoundDistribution") returns the corresponding slot
signature(object = "CompoundDistribution") returns the corresponding slot
There is a coerce method to coerce objects of class "CompoundDistribution" to
class UnivarLebDecDistribution; this is done by a simple call to simplifyD.
Peter Ruckdeschel peter.ruckdeschel@uni-oldenburg.de
Parameter-class,
UnivariateDistribution-class,
LatticeDistribution-class,
AbscontDistribution-class,
simplifyD,
flat.mix
CP <- CompoundDistribution(Pois(),Norm())
CP
p(CP)(0.3)
plot(CP)
Run the code above in your browser using DataLab