# decomposePM-methods

##### Methods for function decomposePM in Package `distr'

decomposePM-methods

- Keywords
- methods, distribution

##### 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 components`D`

for the distribution (in this case of class`"AbscontDistribution"`

again) and`w`

for 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 to`abs(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 components`D`

for the distribution (in this case of class`"DiscreteDistribution"`

again) and`w`

for the weight of the respective part; while the distribution of the zero part is always`Dirac(0)`

, if the weight of the negative part is 0, the corresponding distribution is set to`Dirac(-1)`

, and respectively, if the weight of the positive part is 0, the corresponding distribution is set to`Dirac(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 components`D`

for the distribution (in case of components`"neg"`

,`"pos"`

of class`"UnivarLebDecDistribution"`

again, while the distribution of the zero part is always`Dirac(0)`

) and`w`

for the weight of the respective part; it is build up by calling`decomposePM`

for`acPart(object)`

and`discretePart(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

```
# NOT RUN {
decomposePM(Norm())
decomposePM(Binom(2,0.3)-Binom(5,.4))
decomposePM(UnivarLebDecDistribution(Norm(),Binom(2,0.3)-Binom(5,.4),
acWeight = 0.3))
# }
```

*Documentation reproduced from package distr, version 2.8.0, License: LGPL-3*