News for hackers. Stuff that matters.
Re:Visualize Randomness in OCaml by blt on Sunday November 22, 2015 @07:55PM (#10612250)
3d scatterplots dramatically visualize the flaws in the infamous RANDU: https://en.m.wikipedia.org/wiki/RANDU
Re:Visualize Randomness in OCaml by Ono-Sendai on Sunday November 22, 2015 @07:17PM (#10612133)
Don't use jpeg format for this stuff, you'll end up just looking at blocking artifacts. Use PNG.
Re:Visualize Randomness in OCaml by jacksontale on Monday November 23, 2015 @02:39AM (#10613323)
Can I know why?
Re:Visualize Randomness in OCaml by Ono-Sendai on Monday November 23, 2015 @07:24AM (#10614177)
The way JPEG works is by dividing up the image into 8x8 pixel blocks, then transforming each block using the discrete cosine transform (DCT). If you look closely at a JPEG file, especially at low quality settings, you can see the edges of the blocks. This means that artifacts have been introduced during the compression of the image. PNG however, is a lossless image compression format, meaning that no artifacts will be introduced by saving and loading an image in PNG.
Re:Visualize Randomness in OCaml by jacksontale on Tuesday November 24, 2015 @05:21AM (#10620033)
Re:Visualize Randomness in OCaml by Ono-Sendai on Tuesday November 24, 2015 @12:57PM (#10622298)
You have a very high quality JPEG in this case, even bigger than the PNG. So there aren't visible artifacts in this case. It's more of a general principle.
Re:Visualize Randomness in OCaml by jacksontale on Wednesday November 25, 2015 @06:44AM (#10626706)
But anyway, I updated teh post, so people could be aware of this diff.
Re:Visualize Randomness in OCaml by jacksontale on Wednesday November 25, 2015 @06:44AM (#10626701)
ah ok, thanks.