java.lang.Object
org.metacosm.framework.random.GaussianDistributionLaw
- All Implemented Interfaces:
- DistributionLaw, org.metacosm.framework.persistence.Persistent, java.io.Serializable
- public class GaussianDistributionLaw
- extends java.lang.Object
- implements DistributionLaw
Gaussian distribution law with specified mean and standard deviation
Standard is normal law with mean 0.0 and standard deviation 1.0.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
private java.lang.Class type
mean
private double mean
deviation
private double deviation
GaussianDistributionLaw
public GaussianDistributionLaw(java.lang.Class type)
throws java.lang.IllegalArgumentException
GaussianDistributionLaw
public GaussianDistributionLaw(java.lang.Class type,
double mean,
double deviation)
throws java.lang.IllegalArgumentException
nextValue
public java.lang.Object nextValue()
- Specified by:
nextValue in interface DistributionLaw
save
public void save(java.io.OutputStream os)
throws java.io.IOException
- Description copied from interface:
org.metacosm.framework.persistence.Persistent
- Saves on the stream.
- Specified by:
save in interface org.metacosm.framework.persistence.Persistent
load
public void load(java.io.InputStream is)
throws java.io.IOException
- Description copied from interface:
org.metacosm.framework.persistence.Persistent
- Loads from the stream.
- Specified by:
load in interface org.metacosm.framework.persistence.Persistent