#' Inverse Sample
#'
#' @param cdf Cumulative density function
#'
#' @return sampled realisation
#' @export
#'
#' @examples
#'
inverse_sample <- function(cdf) {
cdf$x[sum(runif(1) > cdf$y)]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.