drcl.util.random
Class RandomNumberGenerator
java.lang.Object
drcl.DrclObj
drcl.util.random.RandomNumberGenerator
- All Implemented Interfaces:
- java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable
- Direct Known Subclasses:
- Constant, ExponentialDistribution, GaussianDistribution, LognormalDistribution, LognormalParetoDistribution, ParetoDistribution, TruncatedLognormalDistribution, TruncatedParetoDistribution, UniformDistribution
- public abstract class RandomNumberGenerator
- extends DrclObj
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RandomNumberGenerator
public RandomNumberGenerator()
RandomNumberGenerator
public RandomNumberGenerator(long seed_)
getName
public abstract java.lang.String getName()
nextDouble
public abstract double nextDouble()
nextInt
public abstract int nextInt()
nextLong
public abstract long nextLong()
reset
public void reset()
- Resets the generator .
duplicate
public void duplicate(java.lang.Object source_)
- Description copied from class:
DrclObj
- opies the content of the
source_ object to this object.
he subclass must implement this method to realize DrclObj.clone().
- Specified by:
duplicate in interface ObjectDuplicable- Overrides:
duplicate in class DrclObj
setSeed
public void setSeed(long seed_)
getSeed
public long getSeed()
info
public java.lang.String info()
getMean
public double getMean()
getStd
public double getStd()
info
public java.lang.String info(java.lang.String prefix_)
toString
public java.lang.String toString()
- Overrides:
toString in class DrclObj
oneline
public java.lang.String oneline()
Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved. ~ To J-Sim Home ~