CompoundDistribution-class {distr} | R Documentation |
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
.
NumbOfSummandsDistr
:"DiscreteDistribution"
,
the frequency distribution.SummandsDistr
:"UnivDistrListOrDistribution"
,
that is, either of class code{"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 numbersd
:NULL
p
:"function"
: cumulative distribution functionq
:"function"
: quantile function.withArith
:.withSim
:
Class "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
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@itwm.fraunhofer.de
Parameter-class
,
UnivariateDistribution-class
,
LatticeDistribution-class
,
AbscontDistribution-class
,
simplifyD
,
flat.mix
CP <- CompoundDistribution(Pois(),Norm()) CP p(CP)(0.3) plot(CP)