| CompoundDistribution-class {distr} | R Documentation |
Class "CompoundDistribution"
Description
CompoundDistribution-class is a class to formalize
compound distributions; it is a subclass to
class UnivarMixingDistribution.
Objects from the Class
Objects can be created by calls of the form
new("CompoundDistribution", ...).
More frequently they are created via the generating function
CompoundDistribution.
Slots
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 asmixCoeff.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 numbersdfixed to
NULLpObject of class
"function": cumulative distribution functionqObject 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.
Extends
Class "UnivarMixingDistribution"
class "UnivarDistribution" by class "UnivarMixingDistribution",
class "Distribution" by class "UnivariateDistribution".
Methods
- show
signature(object = "CompoundDistribution")prints the object- SummandsDistr
signature(object = "CompoundDistribution")returns the corresponding slot- NumbOfSummandsDistr
signature(object = "CompoundDistribution")returns the corresponding slot
setAs relations
There is a coerce method to coerce objects of class "CompoundDistribution" to
class UnivarLebDecDistribution; this is done by a simple call to simplifyD.
Author(s)
Peter Ruckdeschel peter.ruckdeschel@uni-oldenburg.de
See Also
Parameter-class,
UnivariateDistribution-class,
LatticeDistribution-class,
AbscontDistribution-class,
simplifyD,
flat.mix
Examples
CP <- CompoundDistribution(Pois(),Norm())
CP
p(CP)(0.3)
plot(CP)