|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Utility.RandomNumber | +--Utility.Beta
Beta is used to generate random variables from
the Beta distribution. A specific beta distribution
is characterized by two parameters, both representing
degrees of freedom.
This is a continuous distribution.
Tests Performed
1000 samples were generated and the means and variances
were examined. Subjectively, they seemed correct.
Goodness of fit tests where not performed.
Constructor Summary | |
Beta(int degsFreedom1,
int degsFreedom2)
Beta constructor. |
Method Summary | |
double |
sampleDouble()
The sampleDouble function returns a random variable that is chosen from a beta distribution with parameters as set in the constructor. |
int |
sampleInt()
The sampleInt function should not be called for this continuous distribution. |
Methods inherited from class Utility.RandomNumber |
goodnessOfFitTest, goodnessOfFitTest, randomMixer, resetRandomMixer, sample01 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Beta(int degsFreedom1, int degsFreedom2)
degsFreedom1
- The first degrees of freedom parameterdegsFreedom2
- The second degrees of freedom parameterMethod Detail |
public double sampleDouble()
sampleDouble
in class RandomNumber
Beta(int, int)
public int sampleInt()
sampleInt
in class RandomNumber
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |