Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

UnivariateDistribution-class

Class "UnivariateDistribution"


Description

The UnivariateDistribution-class is the mother-class of the classes AbscontDistribution and DiscreteDistribution.

Objects from the Class

Objects can be created by calls of the form new("UnivariateDistribution").

Slots

img

Object of class "Reals": the space of the image of this distribution which has dimension 1 and the name "Real Space"

param

Object of class "Parameter": the parameter of this distribution

r

Object of class "function": generates random numbers

d

Object of class "function": density function

p

Object of class "function": cumulative distribution function

q

Object of class "function": quantile function

.withArith

logical: used internally to issue warnings as to interpretation of arithmetics

.withSim

logical: used internally to issue warnings as to accuracy

.logExact

logical: used internally to flag the case where there are explicit formulae for the log version of density, cdf, and quantile function

.lowerExact

logical: used internally to flag the case where there are explicit formulae for the lower tail version of cdf and quantile function

Symmetry

object of class "DistributionSymmetry"; used internally to avoid unnecessary calculations.

Extends

Class "Distribution", directly.

Methods

initialize

signature(.Object = "UnivariateDistribution"):

initialize method

dim

signature(x = "UnivariateDistribution"):

returns the dimension of the support of the distribution

-

signature(e1 = "UnivariateDistribution"):

application of ‘-’ to this univariate distribution

*

signature(e1 = "UnivariateDistribution", e2 = "numeric"):

multiplication of this univariate distribution by an object of class ‘numeric’

/

signature(e1 = "UnivariateDistribution", e2 = "numeric"):

division of this univariate distribution by an object of class ‘numeric’

+

signature(e1 = "UnivariateDistribution", e2 = "numeric"):

addition of this univariate distribution to an object of class ‘numeric’

-

signature(e1 = "UnivariateDistribution", e2 = "numeric"):

subtraction of an object of class ‘numeric’ from this univariate distribution

*

signature(e1 = "numeric", e2 = "UnivariateDistribution"):

multiplication of this univariate distribution by an object of class ‘numeric’

+

signature(e1 = "numeric", e2 = "UnivariateDistribution"):

addition of this univariate distribution to an object of class ‘numeric’

-

signature(e1 = "numeric", e2 = "UnivariateDistribution"):

subtraction of this univariate distribution from an object of class ‘numeric’

+

signature(e1 = "UnivariateDistribution", e2 = "UnivariateDistribution"):

Convolution of two univariate distributions. The slots p, d and q are approximated by grids.

-

signature(e1 = "UnivariateDistribution", e2 = "UnivariateDistribution"):

Convolution of two univariate distributions. The slots p, d and q are approximated by grids.

simplifyr

signature(object = "UnivariateDistribution"):

simplifies the r-method of a distribution, see there for further information

print

signature(object = "UnivariateDistribution"):

returns the class of the object and its parameters

show

signature(object = "UnivariateDistribution"): as print

Author(s)

Thomas Stabla statho3@web.de,
Florian Camphausen fcampi@gmx.de,
Peter Ruckdeschel peter.ruckdeschel@uni-oldenburg.de,
Matthias Kohl Matthias.Kohl@stamats.de

See Also


distr

Object Oriented Implementation of Distributions

v2.8.0
LGPL-3
Authors
Florian Camphausen [ctb] (contributed as student in the initial phase --2005), Matthias Kohl [aut, cph], Peter Ruckdeschel [cre, cph], Thomas Stabla [ctb] (contributed as student in the initial phase --2005), R Core Team [ctb, cph] (for source file ks.c/ routines 'pKS2' and 'pKolmogorov2x')
Initial release
2019-03-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.