liesInSupport: Generic Function for Testing the Support of a Distribution

Description Usage Arguments Value Methods Author(s) See Also Examples

Description

The function tests if x lies in the support of the distribution object.

Usage

1
liesInSupport(object, x)

Arguments

object

object of class "Distribution"

x

numeric vector or matrix

Value

logical vector

Methods

object = "DiscreteDistribution", x = "numeric":

does x lie in the support of object.

object = "DiscreteDistribution", x = "matrix":

does x lie in the support of object.

object = "AbscontDistribution", x = "numeric":

does x lie in the support of object.

object = "AbscontDistribution", x = "matrix":

does x lie in the support of object.

Author(s)

Matthias Kohl [email protected]

See Also

Distribution-class

Examples

1
2
3
4
5
6
7
8
9
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

distr documentation built on July 9, 2018, 3 a.m.