Nothing
split_sample <- function(
prob,
delta = exp(-16)
) {
r_prob <- range(prob)
n <- length(prob)
# send our data to the C program
r.result <- .C("R_split_sample",
as.double( prob ), # probability vector
as.integer( n ), # length of prob and nrow of x
as.double(delta)
)
return( which( round(r.result[[1]]) == 1 ))
}
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.