The function tests if x lies in the support of the distribution object.
x
object
# S4 method for DiscreteMVDistribution,numeric liesInSupport(object, x) # S4 method for DiscreteMVDistribution,matrix liesInSupport(object, x)
object of class "Distribution"
"Distribution"
numeric vector or matrix
logical vector
does x lie in the support of object.
Distribution-class
# NOT RUN { M <- matrix(rpois(30, lambda = 10), ncol = 3) D1 <- DiscreteMVDistribution(M) M1 <- rbind(r(D1)(10), matrix(rpois(30, lam = 10), ncol = 3)) liesInSupport(D1, M1) # }
Run the code above in your browser using DataCamp Workspace