liesInSupport

0th

Percentile

Generic Function for Testing the Support of a Distribution

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

Keywords
distribution
Usage
liesInSupport(object, x)
Arguments
object
object of class "Distribution"
x
numeric vector or matrix
Value

  • logical vector

See Also

Distribution-class

Aliases
  • liesInSupport
  • liesInSupport-methods
  • liesInSupport,DiscreteDistribution,numeric-method
  • liesInSupport,DiscreteDistribution,matrix-method
  • liesInSupport,AbscontDistribution,numeric-method
  • liesInSupport,AbscontDistribution,matrix-method
  • liesInSupport,DiscreteMVDistribution,numeric-method
  • liesInSupport,DiscreteMVDistribution,matrix-method
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

M <- matrix(rpois(30, lam = 10), ncol = 3)
D1 <- DiscreteMVDistribution(M)
M1 <- rbind(r(D1)(10), matrix(rpois(30, lam = 10), ncol = 3))
liesInSupport(D1, M1)
Documentation reproduced from package distrEx, version 0.4-2, License: GPL (version 2 or later)

Community examples

Looks like there are no examples yet.