-.dist: Method for negation or subtraction of dist objects.
Description
Unary: returns negated distribution (e.g., -N(mu, var) = N(-mu, var))
Binary: creates expression distribution and simplifies to closed form
when possible (e.g., normal - normal = normal, normal - scalar = normal).
Usage
# S3 method for dist
-(x, y)
Value
A simplified distribution or edist if no closed form exists
Arguments
x
A dist object or numeric scalar
y
A dist object or numeric scalar (optional for unary negation)