liesInSupport
From distr v2.3.1
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
- logical vector
concept
- space
- S4 space class
- support
See Also
Examples
liesInSupport(Exp(1), rnorm(10))
# note
x <- rpois(10, lam = 10)
liesInSupport(Pois(1), x)
# better
distroptions("TruncQuantile"=1e-15)
liesInSupport(Pois(1), x)
distroptions("TruncQuantile"=1e-05) # default
Community examples
Looks like there are no examples yet.