CompoundDistribution-class is a class to formalize
compound distributions; it is a subclass to
class UnivarMixingDistribution.new("CompoundDistribution", ...).
More frequently they are created via the generating function
CompoundDistribution.NumbOfSummandsDistr"DiscreteDistribution",
the frequency distribution.SummandsDistr"UnivDistrListOrDistribution",
that is, either of class "UnivarDistrList" (non i.i.d. case) or
of class "UnivariateDistribution" (i.i.d. case); the summand distribution(s).mixCoeff"numeric": a vector of
probabilities for the mixing components.mixDistr"UnivarDistrList": a list of
univariate distributions containing the mixing components; must be of same
length as mixCoeff.img"Reals": the space of the image of this distribution which has dimension 1
and the name "Real Space" param"Parameter": the parameter of this distribution, having only the
slot name "Parameter of a discrete distribution" r"function": generates random numbersdNULLp"function": cumulative distribution functionq"function": quantile function.withArith.withSim.logExact.lowerExactSymmetry"DistributionSymmetry";
used internally to avoid unnecessary calculations."UnivarMixingDistribution"
class "UnivarDistribution" by class "UnivarMixingDistribution",
class "Distribution" by class "UnivariateDistribution".signature(object = "CompoundDistribution") prints the objectsignature(object = "CompoundDistribution") returns the corresponding slotsignature(object = "CompoundDistribution") returns the corresponding slot"CompoundDistribution" to
class UnivarLebDecDistribution; this is done by a simple call to simplifyD.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