Boost logo

Boost :

Subject: Re: [boost] [random] Quantization effects in generating floating point values
From: Thijs (M.A.) van den Berg (thijs_at_[hidden])
Date: 2015-03-05 13:21:27


On 05 Mar 2015, at 19:01, John Maddock <jz.maddock_at_[hidden]> wrote:

>> It occurs to me
>>> that an equivalent to independent_bit_engine but for floating point
>>> types could be much more efficient - especially in the binary floating
>>> point case.
>> It's called generate_canonical.
> Ah, good.
>
> However, I don't see it in the docs anywhere?
>
> Ah... it's not listed in the docs Jamfile so it's not built in. My guess is that no one else has noticed it either?

There is also a std::generate_canonical in the C++11 standard, those descriptions and specs might also help.

Eg http://en.cppreference.com/w/cpp/numeric/random/generate_canonical


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk