#' Converts a probability distribution into a cumulative distribution
#' @param distribution The probability distribution of a set of outcomes
#' @return The coressponding cumulative distribution
#' @export
cumulate_distribution <- function(distribution)
{
return(cumsum(distribution))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.