Commit 5f16efb
committed
FIX: Fix the Ziggurat for double to generates negative samples
In the Ziggurat method, the polarity of normal RV must be chosen at random.
Previously, this Ziggurat implementation always generates a positive value.
This RV obviously does not follows the normal distribution.
Now it has positive and negative samples and is normally-distributed.1 parent b08a05c commit 5f16efb
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | 144 | | |
147 | 145 | | |
148 | 146 | | |
| |||
0 commit comments