Package com.opttek.optquest
Class COptQuestBetaRandomVariable
java.lang.Object
com.opttek.optquest.COptQuestVariable
com.opttek.optquest.COptQuestUserControlledVariable
com.opttek.optquest.COptQuestBetaRandomVariable
A random variable with a beta distribution. Its value is from 0 to 1, such as a
proportion. Use the two shape parameters
alpha and beta, both greater than
0, to set where the values collect:
- With
alpha=beta= 1, every value from 0 to 1 is equally likely. - With
alphaandbetaboth greater than 1, the values collect around one peak. - With
alphaorbetaless than 1, the values collect near 0, near 1, or near both.
alpha / (alpha + beta).
The engine draws a new value at the start of every replication. The probability
distribution is COptQuestBetaDistribution.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCOptQuestBetaRandomVariable(String name, double alpha, double beta) Constructs a new beta random variable with the specified name and shape parameters. -
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
-
COptQuestBetaRandomVariable
public COptQuestBetaRandomVariable(String name, double alpha, double beta) throws COptQuestException Constructs a new beta random variable with the specified name and shape parameters.- Parameters:
name- the name/identifier of this random variable (used for reporting, logging, or display purposes)alpha- the first shape parameter (α > 0)beta- the second shape parameter (β > 0)- Throws:
COptQuestException
-