Skip to content

Commit 1ce3bae

Browse files
committed
Fix: relative uncertainty
1 parent 8b96c2d commit 1ce3bae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kaleidoscope/algorithms/randomize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def randomize(
8787
if coverage != 1.0:
8888
u = u / coverage
8989
if relative:
90-
u = u * x
90+
u = np.abs(u * x)
9191
match self._dist:
9292
case "normal":
9393
y = self._normal(seed, x, u)

0 commit comments

Comments
 (0)