Naturals-class

0th

Percentile

Class "Naturals"

The distribution-classes contain a slot where the sample space is stored. Typically, discrete random variables take naturals as values.

Keywords
distribution
Usage
Naturals()
Objects from the Class

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.

Extends

Class "Reals", directly. Class "EuclideanSpace", by class "Reals". Class "rSpace", by class "Reals".

concept

  • naturals
  • space
  • set
  • S4 space class

See Also

Reals-class DiscreteDistribution-class

Aliases
  • Naturals
  • Naturals-class
  • initialize,Naturals-method
Examples
N <- Naturals()
liesIn(N,1) # TRUE
liesIn(N,c(0,1)) # FALSE
liesIn(N,0.1) # FALSE
Documentation reproduced from package distr, version 2.3.1, License: LGPL-3

Community examples

Looks like there are no examples yet.