Skip to content

Commit 4a40ec4

Browse files
authored
Merge pull request #67 from umireon/ziggurat-only-positive
Generated samples by this Ziggurat implementation is not normally-distributed
2 parents b08a05c + 5f16efb commit 4a40ec4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

randomstate/distributions.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ static inline double gauss_zig_double(aug_state* state)
141141
x = rabs * wi_double[idx];
142142
if (sign & 0x1)
143143
x = -x;
144-
if (r & 0x1)
145-
x = -x;
146144
if (rabs < ki_double[idx])
147145
return x; // # 99.3% of the time return here
148146
if (idx == 0)

0 commit comments

Comments
 (0)