Closed FreezyLemon closed 10 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
d555dc8
) 88.48% compared to head (d57026b
) 88.52%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Notable changes:
cdf!
always required the parameter count to be== CDF_LEN - 1
, the newcdf
function accepts any parameter count< CDF_LEN
. Any values after the last parameter will be zero. (e.g. if the output has a length of 8 and the parameter count is 5, then the output values 6 to 8 will be zero). This means:Added helper functions for multi-dimensional arrays (up to 5D) to avoid spamming the
cdf
macro/fnwill become
and so on.
[0, 32768]
to avoid underflows in32768 - val
assert!
statementsThe code for
cdf_2d
,cdf_3d
etc. is a little messy. But it's the best way I found to keep theseconst
without some sort of macroized implementation (which seems a bit overkill for just 5 similar functions).