Package com.opttek.optquest
Class COptQuestUniformRandomVariable
java.lang.Object
com.opttek.optquest.COptQuestVariable
com.opttek.optquest.COptQuestUserControlledVariable
com.opttek.optquest.COptQuestUniformRandomVariable
A random variable with a uniform distribution on [
min, max].
Every value in the range is equally likely. max must be greater than min. The
constructor that takes only a name uses the range [0, 1].
The engine draws a new value at the start of every replication. The probability
distribution is COptQuestUniformDistribution.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new uniform random variable with the specified name and the standard uniform range [0, 1].COptQuestUniformRandomVariable(String name, double min, double max) Constructs a new uniform random variable with the specified name and range [min, max]. -
Method Summary
Methods inherited from class com.opttek.optquest.COptQuestUserControlledVariable
GetReplicationStatistic, GetReplicationStatisticValue, SetExclusiveRange, SetLowerBound, SetReplicationStatistic, SetUpperBoundMethods inherited from class com.opttek.optquest.COptQuestVariable
equals, GetDOELowerBound, GetDOEUpperBound, GetExclusiveLowerBoundAt, GetExclusiveUpperBoundAt, getID, GetLowerBound, GetName, GetNumberOfExclusiveRanges, GetStepSize, GetSuggestedValue, GetUpperBound, getVarRange, hashCode, isZeroOne, SetName
-
Constructor Details
-
COptQuestUniformRandomVariable
public COptQuestUniformRandomVariable(String name, double min, double max) throws COptQuestException Constructs a new uniform random variable with the specified name and range [min, max].- Parameters:
name- the name/identifier of this random variable (used for reporting, logging, or display purposes)min- the lower bound of the uniform distribution (inclusive)max- the upper bound of the uniform distribution (inclusive)- Throws:
COptQuestException
-
COptQuestUniformRandomVariable
Constructs a new uniform random variable with the specified name and the standard uniform range [0, 1].- Parameters:
name- the name/identifier of this random variable (used for reporting, logging, or display purposes)- Throws:
COptQuestException
-