#' @rdname linear_transform
#' @export
flip <- function(distribution) {
with(distionary::parameters(distribution), {
dist <- list(
distribution = distribution
)
distionary::new_distribution(
dist, variable = distionary::variable(distribution), class = "negative"
)
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.