Skip to content

Commit

Permalink
Add small comment
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr committed Aug 6, 2024
1 parent 26de1e9 commit 33749c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions codecs/uniform-noise/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ where
// the data must be visited in a defined order
for x in &mut encoded {
// x = U(0,1)*scale + (scale*-0.5 + x)
// --- is equivalent to ---
// x += U(-scale/2, +scale/2)
*x = Open01
.sample(&mut rng)
Expand Down

0 comments on commit 33749c1

Please sign in to comment.