Nothing
kernelDist <-
function(X, Grid, h, weight = 1, printProgress = FALSE) {
if (!is.numeric(X) && !is.data.frame(X)) {
stop("X should be a matrix of coordinates")
}
if (!is.numeric(Grid) && !is.data.frame(Grid)) {
stop("Grid should be a matrix of coordinates")
}
if (NCOL(X) != NCOL(Grid)) {
stop("dimensions of X and Grid do not match")
}
if (!is.numeric(h) || length(h) != 1 || h <= 0) {
stop("h should be a positive number")
}
if (!is.numeric(weight) ||
(length(weight) != 1 && length(weight) != NROW(X))) {
stop("weight should be either a number or a vector of length equals the number of sample")
}
if (!is.logical(printProgress)) {
stop("printProgress should be a logical variable")
}
return (KdeDist(X = as.matrix(X), Grid = as.matrix(Grid), h = h,
weight = weight, printProgress = printProgress))
}
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.