| Dirac-class {distr} | R Documentation |
The Dirac distribution with location l, by default =0, has density d(x) = 1 for x = l, 0 else.
Objects can be created by calls of the form Dirac(location).
This object is a Dirac distribution.
img:"Naturals": The space of the image of this
distribution has got dimension 1 and the name "Real Space". param:"DiracParameter": the parameter of this distribution (location),
declared at its instantiation r:"function": generates random numbers d:"function": density function p:"function": cumulative function q:"function": inverse of the cumulative function support:"numeric": a (sorted) vector containing the support of the discrete
density function.withArith:.withSim:.logExact:.lowerExact:
Class "DiscreteDistribution", directly.
Class "UnivariateDistribution", by class "DiscreteDistribution".
Class "Distribution", by class "DiscreteDistribution".
signature(e1 = "Dirac", e2 = "Dirac")signature(e1 = "Dirac", e2 = "Dirac")signature(e1 = "Dirac", e2 = "Dirac")signature(e1 = "Dirac", e2 = "Dirac"):
For the Dirac distribution these operations are trivial.signature(.Object = "Dirac"): initialize method signature(object = "Dirac"): returns the slot location of the parameter of the distribution signature(object = "Dirac"): modifies the slot location of the parameter of the distribution signature(object = "Dirac"): returns an object of class "Dirac" distribution with log-transformed
location parameter. signature(object = "Dirac"): given a "Math" group generic fun an object of class
"Dirac" distribution with fun-transformed location parameter is returned. further arithmetic methods see operators-methods
Thomas Stabla statho3@web.de,
Florian Camphausen fcampi@gmx.de,
Peter Ruckdeschel Peter.Ruckdeschel@itwm.fraunhofer.de,
Matthias Kohl Matthias.Kohl@stamats.de
DiracParameter-class
DiscreteDistribution-class
Naturals-class
D <- Dirac(location = 0) # D is a Dirac distribution with location=0. r(D)(1) # r(D)(1) generates a pseudo-random-number according to a Dirac # distribution with location = 0, # which of course will take 0 as value almost surely. d(D)(0) # Density of this distribution is 1 for x = 0. p(D)(1) # Probability that x < 1 is 1. q(D)(.1) # q(D)(x) is always 0 (= location). location(D) # location of this distribution is 0. location(D) <- 2 # location of this distribution is now 2.