| Naturals-class | R Documentation |
The distribution-classes contain a slot where the sample space is stored. Typically, discrete random variables take naturals as values.
Naturals()
Objects could theoretically be created by calls of the form new("Naturals", dimension, name).
Usually an object of this class is not needed on its own. It is generated automatically when a univariate discrete
distribution is instantiated.
dimensionObject of class "character": the dimension of the space, by default = 1
nameObject of class "character": the name of the space, by default = "Natural Space"
Class "Reals", directly.
Class "EuclideanSpace", by class "Reals".
Class "rSpace", by class "Reals".
signature(.Object = "Naturals"): initialize method
signature(object = "Naturals", x = "numeric"): Does a particular vector only contain naturals?
Thomas Stabla statho3@web.de,
Florian Camphausen fcampi@gmx.de,
Peter Ruckdeschel peter.ruckdeschel@uni-oldenburg.de,
Matthias Kohl Matthias.Kohl@stamats.de
Reals-class
DiscreteDistribution-class
N <- Naturals()
liesIn(N,1) # TRUE
liesIn(N,c(0,1)) # FALSE
liesIn(N,0.1) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.