In package distrib, implement pdf and cdf for inverse gamma with conditional expressions
commit9f36ac4e40e676910e3f5c16a00b45e0188017d2
authorRobert Dodier <robert_dodier@users.sourceforge.net>
Mon, 21 Mar 2022 03:00:01 +0000 (20 20:00 -0700)
committerRobert Dodier <robert_dodier@users.sourceforge.net>
Mon, 21 Mar 2022 03:00:18 +0000 (20 20:00 -0700)
tree9939d0c8395500abbed89868c99972042fecfa05
parentef7a398bb2ebf9908b04e1838e645a3ef6657c83
In package distrib, implement pdf and cdf for inverse gamma with conditional expressions
instead of unit_step.

This ensures gamma function is only evaluated for valid
arguments; otherwise gamma might be evaluated for an invalid
argument, even though unit_step(x) is zero, and the whole
result should be zero.
share/distrib/distrib.mac
share/distrib/rtest_distrib.mac