powered by
Handles scalar * dist, dist * scalar, and dist * dist.
# S3 method for dist *(x, y)
A simplified distribution or edist
first operand
second operand
# Scalar multiplication simplifies for normal z <- 2 * normal(0, 1) z # Normal(mu = 0, var = 4) # Product of two distributions yields an edist w <- normal(0, 1) * exponential(1) is_edist(w) # TRUE
Run the code above in your browser using DataLab