- All Implemented Interfaces:
public class AntitheticStreamextends Objectimplements RandomStreamThis container class allows the user to force any
RandomStreamto return antithetic variates. That is,
nextDoublereturns 1 - u instead of u and the corresponding change is made in
nextInt. Any instance of this class behaves exactly like a
RandomStream, except that it depends on another random number generator stream, called the base stream, to generate its numbers. Any call to one of the next... methods of this class will modify the state of the base stream.