Nothing
setMethod("liesInSupport", signature(object = "DiscreteMVDistribution",
x = "numeric"),
function(object, x, checkFin = FALSE){
k <- dimension(img(object))
if(length(x) != k)
stop("'x' has wrong dimension")
supp <- support(object)
ind <- colSums(apply(supp, 1, "==", x)) == k
return(any(ind))
})
setMethod("liesInSupport", signature(object = "DiscreteMVDistribution",
x = "matrix"),
function(object, x, checkFin = FALSE){
if(ncol(x) != dimension(img(object)))
stop("'x' has wrong dimension")
res <- logical(nrow(x))
for(i in 1:nrow(x)) res[i] <- liesInSupport(object, x[i,], checkFin)
return(res)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.