|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.indiana.util.distribution.DummyDistribution
public class DummyDistribution
A "distribution" that always returns 0. Can be useful as a placeholder.
| Constructor Summary | |
|---|---|
DummyDistribution()
Creates a new instance of DummyDistribution |
|
| 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 DummyDistribution()
| Method Detail |
|---|
public double generateValue()
generateValue in interface Distributionpublic void setParameters(double[] parameters)
setParameters in interface Distributionpublic java.lang.String toString()
toString in interface DistributiontoString in class java.lang.Objectpublic java.lang.Object clone()
clone in interface Distributionclone in class java.lang.Objectpublic int generateIntValue()
Distribution
generateIntValue in interface Distribution
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||