Expand description
Log-space arithmetic helpers.
Salmon performs nearly all of its probability accumulation in log space to
avoid underflow. These helpers mirror the conventions in the C++ code where
LOG_0 is negative infinity and LOG_1 is zero.
Constants§
- LOG_0
- log(0) = -inf
- LOG_1
- log(1) = 0
- LOG_
EPSILON - A very small log-space epsilon used as an effective “zero” mass in places where strict -inf would propagate NaNs.