DiscreteDistribution

0th

Percentile

Generating function for DiscreteDistribution-class

Generates an object of class "DiscreteDistribution".

Keywords
distribution
Usage
DiscreteDistribution(supp, prob)
  DiscreteDistribution(supp)
Arguments
supp
numeric vector which forms the support of the discrete distribution.
prob
vector of probability weights for the elements of supp.
Details

If prob is missing, all elements in supp are equally weighted.

Value

  • Object of class "DiscreteDistribution"

synopsis

DiscreteDistribution(supp, prob)

concept

discrete distribution

See Also

DiscreteDistribution-class

Aliases
  • DiscreteDistribution
Examples
# Dirac-measure at 0
D1 <- DiscreteDistribution(supp = 0)
support(D1)

# simple discrete distribution
D2 <- DiscreteDistribution(supp = c(1:5), prob = c(0.1, 0.2, 0.3, 0.2, 0.2))
plot(D2)
Documentation reproduced from package distrEx, version 0.4-2, License: GPL (version 2 or later)

Community examples

Looks like there are no examples yet.