decomposePMmethods
From distr v2.6
by Peter Ruckdeschel
Methods for function decomposePM in Package `distr'
decomposePMmethods
 Keywords
 methods, distribution
Usage
decomposePM(object)
Arguments
 object
 Abscont/Discrete/UnivarLebDecDistribution object
Details
There are particular return types for the following classes
 "AbscontDistribution"
 a list with components
"neg"
and"pos"
for the respective negative and positive part; each of these parts in its turn is a list with componentsD
for the distribution (in this case of class"AbscontDistribution"
again) andw
for the weight of the respective part; if the weight of the negative part is 0, the corresponding distribution is set toabs(Norm())
, and respectively, if the weight of the positive part is 0, the corresponding distribution is set toabs(Norm())
.  "DiscreteDistribution"
 a list with components
"neg"
,"pos"
and"0"
for the respective negative, positive and zero part; each of these parts in its turn is a list with componentsD
for the distribution (in this case of class"DiscreteDistribution"
again) andw
for the weight of the respective part; while the distribution of the zero part is alwaysDirac(0)
, if the weight of the negative part is 0, the corresponding distribution is set toDirac(1)
, and respectively, if the weight of the positive part is 0, the corresponding distribution is set toDirac(1)
.  "UnivarLebDecDistribution"
 a list with components
"neg"
,"pos"
and"0"
for the respective negative, positive and zero part; each of these parts in its turn is a list with componentsD
for the distribution (in case of components"neg"
,"pos"
of class"UnivarLebDecDistribution"
again, while the distribution of the zero part is alwaysDirac(0)
) andw
for the weight of the respective part; it is build up by callingdecomposePM
foracPart(object)
anddiscretePart(object)
separately, hence if weights of some parts are zero the corresponding procedure mentionned for these methods applies.
Method decomposePM
is used by our multiplication, division and exponentiation
("*"
, "/"
"^"
)  methods.
Value

corresponding weights as a list.
See Also
AbscontDistributionclass
,
DiscreteDistributionclass
,
UnivarLebDecDistributionclass
,
operatorsmethods
Examples
decomposePM(Norm())
decomposePM(Binom(2,0.3)Binom(5,.4))
decomposePM(UnivarLebDecDistribution(Norm(),Binom(2,0.3)Binom(5,.4),
acWeight = 0.3))
Community examples
Looks like there are no examples yet.