swarm.random
Class PSWBgenImpl

java.lang.Object
  |
  +--swarm.random.PSWBgenImpl

public class PSWBgenImpl
extends Object
implements SimpleRandomGeneratorS, SimpleRandomGenerator, PSWBgenS, PSWBgen

Subtract-with-borrow Congruential Generator with prime modulus. PSWB is an improvement on SWB in that the use of a prime modulus guarantees a single full cycle. It's slower, of course.


Constructor Summary
PSWBgenImpl()
           
PSWBgenImpl(ZoneImpl aZone)
          Default constructor for Impl class
PSWBgenImpl(ZoneImpl aZone, int seed)
           
 
Methods implemented by this class for interface swarm.random.SimpleS
setAntithetic
 
Methods implemented by this class for interface swarm.random.SingleSeedS
setStateFromSeed
 
Methods implemented by this class for interface swarm.objectbase.SwarmObject
getCompleteProbeMap, getProbeForMessage, getProbeForVariable, getProbeMap
 
Methods implemented by this class for interface swarm.random.InternalState
describe, getMagic, getName, getStateSize
 
Methods implemented by this class for interface swarm.random.SimpleOut
getDoubleSample, getFloatSample, getThinDoubleSample, getUnsignedMax, getUnsignedSample
 
Methods implemented by this class for interface swarm.random.Simple
getAntithetic, reset
 
Methods implemented by this class for interface swarm.random.SingleSeed
getInitialSeed, getMaxSeedValue
 
Methods implemented by this class for interface swarm.random.MultiSeed
lengthOfSeedVector
 
Methods implemented by this class for interface swarm.defobj.Drop
drop
 
Methods implemented by this class for interface swarm.defobj.DefinedObject
compare, describe, describeID, getDisplayName, getTypeName, getZone, perform, perform$with, perform$with$with, perform$with$with$with, respondsTo, setDisplayName, xfprint, xfprintid, xprint, xprintid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PSWBgenImpl

public PSWBgenImpl()

PSWBgenImpl

public PSWBgenImpl(ZoneImpl aZone,
                   int seed)

PSWBgenImpl

public PSWBgenImpl(ZoneImpl aZone)
Default constructor for Impl class