- All Implemented Interfaces:
public class BakerTransformedStreamextends Objectimplements RandomStreamThis container class permits one to apply the baker's transformation to the output of any
RandomStream. It transforms each u∈[0, 1] into 2u if u <= 1/2 and 2(1 - u) if u > 1/2. The
nextDoublemethod will return the result of this transformation and the other next... methods are affected accordingly. Any instance of this class contains a
RandomStreamcalled its base stream, used to generate its numbers and to which the transformation is applied. Any call to one of the next... methods of this class will modify the state of the base stream.
The baker transformation is often applied when the
RandomStreamis actually an iterator over a point set used for quasi-Monte Carlo integration (see the hups package).