|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.indiana.util.distribution.NormalDistribution
public class NormalDistribution
A specification of a normal random distribution.
| Field Summary | |
|---|---|
protected double |
mean
|
protected double |
standardDeviation
|
| Constructor Summary | |
|---|---|
NormalDistribution()
Construct a NormalDistribution. |
|
NormalDistribution(double mean,
double standardDeviation)
Creates new NormalDistribution |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Obtain a copy of this distribution. |
boolean |
equals(java.lang.Object other)
|
int |
generateIntValue()
Generate an int value according to this distribution. |
double |
generateValue()
Generate a random double from a normal distribution with a specified mean and standard deviation. |
static void |
main(java.lang.String[] args)
|
void |
setParameters(double[] parameters)
Set the parameters for this normal distribution. |
java.lang.String |
toString()
Obtain a String representation of this distribution. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double mean
protected double standardDeviation
| Constructor Detail |
|---|
public NormalDistribution()
public NormalDistribution(double mean,
double standardDeviation)
| Method Detail |
|---|
public double generateValue()
generateValue in interface Distributionpublic int generateIntValue()
Distribution
generateIntValue 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 boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||