R/algebra.R
simplify.Rd
Generic method for simplifying distributions.
simplify(x, ...)
The distribution to simplify
Additional arguments to pass
The simplified distribution
# Simplify dispatches to the appropriate method simplify(normal(0, 1)) # unchanged (already simplified) #> Normal distribution (mu = 0, var = 1)