|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.indiana.util.distribution.SelectionDistribution
public class SelectionDistribution
In this "distribution", one of several distributions is selected to be the distribution in effect for a single number to be generated. The distribution in effect is selected by yet another distribution.
Constructor Summary | |
---|---|
SelectionDistribution(Distribution[] possDistributions)
|
|
SelectionDistribution(Distribution[] possDistributions,
Distribution distSelector)
Creates a new instance of SelectionDistribution |
Method Summary | |
---|---|
java.lang.Object |
clone()
Obtain a copy of this distribution. |
int |
generateIntValue()
Generate an int value according to this distribution. |
double |
generateValue()
Generate a value according to this distribution. |
void |
setParameters(double[] parameters)
Set the parameters of this distribution. |
java.lang.String |
toString()
Obtain a String representation of this distribution. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SelectionDistribution(Distribution[] possDistributions)
public SelectionDistribution(Distribution[] possDistributions, Distribution distSelector)
Method Detail |
---|
public double generateValue()
generateValue
in interface Distribution
public void setParameters(double[] parameters)
setParameters
in interface Distribution
public int generateIntValue()
Distribution
generateIntValue
in interface Distribution
public java.lang.String toString()
Distribution
toString
in interface Distribution
toString
in class java.lang.Object
public java.lang.Object clone()
Distribution
clone
in interface Distribution
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |