liesInSupport
From distr v2.6
by Peter Ruckdeschel
Generic Function for Testing the Support of a Distribution
The function tests if x
lies in the support of the
distribution object
.
 Keywords
 methods, distribution
Usage
liesInSupport(object, x)
Arguments
 object
 object of class
"Distribution"
 x
 numeric vector or matrix
Value
Methods
 object = "DiscreteDistribution", x = "numeric":

does
x
lie in the support ofobject
.  object = "DiscreteDistribution", x = "matrix":

does
x
lie in the support ofobject
.  object = "AbscontDistribution", x = "numeric":

does
x
lie in the support ofobject
.  object = "AbscontDistribution", x = "matrix":

does
x
lie in the support ofobject
.
See Also
Examples
liesInSupport(Exp(1), rnorm(10))
# note
x < rpois(10, lam = 10)
liesInSupport(Pois(1), x)
# better
distroptions("TruncQuantile"=1e15)
liesInSupport(Pois(1), x)
distroptions("TruncQuantile"=1e05) # default
Community examples
Looks like there are no examples yet.