d <- distionary::dst_beta(3, 2)
# Shifting and scaling
d + 10 # Shift right by 10
d * 2 # Scale by 2
3 * d - 5 # Scale then shift
# Power operations
exp(d) # e^X: exponential of Beta
2^d # 2^X: base 2 raised to Beta
# With positive distributions
d_pos <- distionary::dst_unif(1, 2)
d_pos^2 # X^2: uniform squared
d_pos^0.5 # sqrt(X): square root
sqrt(d_pos) # Equivalent to d_pos^0.5
Run the code above in your browser using DataLab