|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simnet.util.RandomSource
public class RandomSource
RandomSource produces random numbers according to a set of user-specified parameters.
| Field Summary | |
|---|---|
static int |
GAUSSIAN
A gaussian distribution. |
static int |
UNIFORM
A uniform distribution. |
| Constructor Summary | |
|---|---|
RandomSource()
|
|
| Method Summary | |
|---|---|
RandomSource |
duplicate(RandomSource dup)
Returns a duplicate random source. |
boolean |
getClipping()
|
int |
getDistributionIndex()
|
static String[] |
getFunctionList()
|
double |
getLowerBound()
|
double |
getMean()
|
double |
getRandom()
Returns a random number. |
double |
getStandardDeviation()
|
double |
getUpperBound()
|
void |
setClipping(boolean clipping)
|
void |
setDistributionIndex(int distributionIndex)
|
void |
setLowerBound(double lowerBound)
|
void |
setMean(double mean)
|
void |
setStandardDeviation(double standardDeviation)
|
void |
setUpperBound(double upperBound)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNIFORM
public static final int GAUSSIAN
| Constructor Detail |
|---|
public RandomSource()
| Method Detail |
|---|
public double getRandom()
public RandomSource duplicate(RandomSource dup)
dup - the RandomSource to duplicate.
RandomSource object.public double getMean()
public void setMean(double mean)
mean - The mean to set.public double getStandardDeviation()
public void setStandardDeviation(double standardDeviation)
standardDeviation - The standardDeviation to set.public boolean getClipping()
public void setClipping(boolean clipping)
clipping - The useBounds to set.public static String[] getFunctionList()
public int getDistributionIndex()
public void setDistributionIndex(int distributionIndex)
distributionIndex - The distributionIndex to set.public double getLowerBound()
public void setLowerBound(double lowerBound)
lowerBound - The lowerBound to set.public double getUpperBound()
public void setUpperBound(double upperBound)
upperBound - The upperBound to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||