| decomposePM-methods {distr} | R Documentation |
Methods for function decomposePM in Package ‘distr’
Description
decomposePM-methods
Usage
decomposePM(object)
Arguments
object |
Abscont-/Discrete-/UnivarLebDec-Distribution 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 componentsDfor the distribution (in this case of class"AbscontDistribution"again) andwfor the weight of the respective part; if the weight of the negative part is 0, the corresponding distribution is set to-abs(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 componentsDfor the distribution (in this case of class"DiscreteDistribution"again) andwfor 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 componentsDfor the distribution (in case of components"neg","pos"of class"UnivarLebDecDistribution"again, while the distribution of the zero part is alwaysDirac(0)) andwfor the weight of the respective part; it is build up by callingdecomposePMforacPart(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
the positive and negative part of the distribution together with corresponding weights as a list.
See Also
AbscontDistribution-class,
DiscreteDistribution-class,
UnivarLebDecDistribution-class,
operators-methods
Examples
decomposePM(Norm())
decomposePM(Binom(2,0.3)-Binom(5,.4))
decomposePM(UnivarLebDecDistribution(Norm(),Binom(2,0.3)-Binom(5,.4),
acWeight = 0.3))