public class NormalSizeDistribution extends java.lang.Object implements PacketSizeDistribution
| Constructor and Description |
|---|
NormalSizeDistribution()
Creates a new NormalSizeDistribution with a mean of 0.0 and a standard
deviation of 1.0 (a standard normal distribution).
|
NormalSizeDistribution(double mean)
Creates a new NormalSizeDistribution with the specified mean and a
standard deviation of 1.0.
|
NormalSizeDistribution(double mean,
double standardDeviation)
Creates a new NormalSizeDistribution with the specified mean and standard
deviation.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMean() |
double |
getStandardDeviation() |
int |
getType() |
int |
nextSize() |
void |
setMean(double newMean)
Sets the mean value of packet sizes generated by this normal size
distribution to the specified value.
|
void |
setStandardDeviation(double newStandardDeviation)
Sets the standard deviation for packet sizes generated by this normal
size distribution to the specified value.
|
public NormalSizeDistribution()
public NormalSizeDistribution(double mean)
public NormalSizeDistribution(double mean,
double standardDeviation)
public double getMean()
public void setMean(double newMean)
public double getStandardDeviation()
public void setStandardDeviation(double newStandardDeviation)
public int getType()
getType in interface PacketSizeDistributionpublic int nextSize()
nextSize in interface PacketSizeDistribution