|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.random.AbstractRandomNumberGenerator<T>
adams.data.random.AbstractSeededRandomNumberGenerator<Double>
adams.data.random.Beta
public class Beta
Generates random numbers from a Beta random variable.
Valid options are:-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-seed <long> (property: seed) The seed value for the random number generator. default: 1
-a <double> (property: a) The first parameter for the beta random variable. default: 1.0
-b <double> (property: b) The second parameter for the beta random variable. default: 2.0
Random.beta(double, double),
Serialized Form| Field Summary | |
|---|---|
protected double |
m_A
the first parameter of the beta random variable. |
protected double |
m_B
the second parameter of the beta random variable. |
protected Random |
m_Random
the random number generator to use. |
| Fields inherited from class adams.data.random.AbstractSeededRandomNumberGenerator |
|---|
m_Seed |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
Beta()
|
|
| Method Summary | |
|---|---|
String |
aTipText()
Returns the tip text for this property. |
String |
bTipText()
Returns the tip text for this property. |
protected void |
check()
Performs optional checks. |
void |
defineOptions()
Adds options to the internal list of options. |
protected Double |
doNext()
Returns the next random number. |
double |
getA()
Returns the first parameter for the beta random variable. |
double |
getB()
Returns the second parameter for the beta random variable. |
String |
globalInfo()
Returns a string describing the object. |
void |
reset()
Resets the generator. |
void |
setA(double value)
Sets the first parameter for the beta random variable. |
void |
setB(double value)
Sets the second parameter for the beta random variable. |
| Methods inherited from class adams.data.random.AbstractSeededRandomNumberGenerator |
|---|
getSeed, seedTipText, setSeed |
| Methods inherited from class adams.data.random.AbstractRandomNumberGenerator |
|---|
forCommandLine, forName, getGenerators, next, shallowCopy, shallowCopy |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double m_A
protected double m_B
protected Random m_Random
| Constructor Detail |
|---|
public Beta()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractSeededRandomNumberGenerator<Double>public void reset()
reset in class AbstractRandomNumberGenerator<Double>public void setA(double value)
value - the first parameterpublic double getA()
public String aTipText()
public void setB(double value)
value - the second parameterpublic double getB()
public String bTipText()
protected void check()
check in class AbstractRandomNumberGenerator<Double>protected Double doNext()
doNext in class AbstractRandomNumberGenerator<Double>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||