Commit 5fa842b
Pin last value to 1.0 in
* Renormalize cdf after summation to improve numerical stability.
* Removing numpy dependency from unit tests
* Removing numpy dependency from unit tests
* Adding missing assert to unit test
---------
Co-authored-by: Alejandro Candioti <amcandio@gmail.com>cumulative_distribution to address floating-point errors. (#8342)1 parent d302ea1 commit 5fa842b
2 files changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
0 commit comments