# operators-methods

From distr v1.8
0th

Percentile

##### Methods for operators +,-,*,/ in Package distr

Arithmetics and unary mathematical transformations for distributions

Keywords
distribution, arith, math
##### Arguments
e1,e2
objects of class "UnivariateDistribution" (or subclasses) or "numeric"
##### Details

Arithmetics as well as all functions from group Math, see Math are provided for distributions; wherever possible exact expressions are used; else random variables are generated according to this transformation and subsequently the remaining slots filled by RtoDPQ, RtoDPQ.d

##### concept

• convolution
• FFT

UnivariateDistribution-class AbscontDistribution-class DiscreteDistribution-class Norm-class Binom-class Pois-class Dirac-class Cauchy-class Gammad-class Exp-class Nbinom-class

##### Aliases
• operators-methods
• operators
• -,UnivariateDistribution,missing-method
• -,Norm,missing-method
• +,UnivariateDistribution,numeric-method
• +,AbscontDistribution,numeric-method
• +,DiscreteDistribution,numeric-method
• +,Cauchy,numeric-method
• +,Dirac,numeric-method
• +,Norm,numeric-method
• +,Unif,numeric-method
• +,numeric,UnivariateDistribution-method
• -,UnivariateDistribution,numeric-method
• -,UnivariateDistribution,UnivariateDistribution-method
• -,numeric,UnivariateDistribution-method
• *,UnivariateDistribution,numeric-method
• *,DiscreteDistribution,numeric-method
• *,AbscontDistribution,numeric-method
• *,DExp,numeric-method
• *,Exp,numeric-method
• *,ExpOrGammaOrChisq,numeric-method
• *,Cauchy,numeric-method
• *,Dirac,numeric-method
• *,Norm,numeric-method
• *,Unif,numeric-method
• *,numeric,UnivariateDistribution-method
• /,UnivariateDistribution,numeric-method
• +,UnivariateDistribution,UnivariateDistribution-method
• +,AbscontDistribution,AbscontDistribution-method
• +,AbscontDistribution,DiscreteDistribution-method
• +,DiscreteDistribution,AbscontDistribution-method
• +,DiscreteDistribution,DiscreteDistribution-method
• +,Binom,Binom-method
• +,Chisq,Chisq-method
• +,Dirac,Dirac-method
• +,ExpOrGammaOrChisq,ExpOrGammaOrChisq-method
• +,Pois,Pois-method
• +,Nbinom,Nbinom-method
• +,Norm,Norm-method
• +,Dirac,UnivariateDistribution-method
• +,UnivariateDistribution,Dirac-method
• -,Dirac,Dirac-method
• *,Dirac,Dirac-method
• *,Dirac,UnivariateDistribution-method
• *,UnivariateDistribution,Dirac-method
• /,Dirac,Dirac-method
##### Examples
N <- Norm(0,3)
P <- Pois(4)
a <- 3
N + a
N + P
N - a
a * N
a * P
N / a + sin( a * P - N)
Documentation reproduced from package distr, version 1.8, License: GPL (version 2 or later)

### Community examples

Looks like there are no examples yet.