|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.indiana.util.distribution.NormalDistribution
edu.indiana.util.distribution.ClampedNormalDistribution
public class ClampedNormalDistribution
This is a normal distribution, but with firm minimum and maximum values.
| Field Summary | |
|---|---|
protected double |
max
|
protected double |
min
|
static double |
UNCLAMPED
|
| Fields inherited from class edu.indiana.util.distribution.NormalDistribution |
|---|
mean, standardDeviation |
| Constructor Summary | |
|---|---|
ClampedNormalDistribution(double mean,
double standardDeviation,
double min,
double max)
Creates a new instance of ClampedNormalDistribution |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Obtain a copy of this distribution. |
boolean |
equals(java.lang.Object other)
|
double |
generateValue()
Generate a random double from a normal distribution with a specified mean and standard deviation. |
double |
getMax()
|
double |
getMin()
|
static void |
main(java.lang.String[] args)
|
void |
setParameters(double[] parameters)
Set the parameters for this clamped normal distribution. |
java.lang.String |
toString()
Obtain a String representation of this distribution. |
| Methods inherited from class edu.indiana.util.distribution.NormalDistribution |
|---|
generateIntValue |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final double UNCLAMPED
protected double min
protected double max
| Constructor Detail |
|---|
public ClampedNormalDistribution(double mean,
double standardDeviation,
double min,
double max)
| Method Detail |
|---|
public double generateValue()
NormalDistribution
generateValue in interface DistributiongenerateValue in class NormalDistributionpublic void setParameters(double[] parameters)
setParameters in interface DistributionsetParameters in class NormalDistributionpublic double getMin()
public double getMax()
public java.lang.String toString()
toString in interface DistributiontoString in class NormalDistributionpublic java.lang.Object clone()
clone in interface Distributionclone in class NormalDistributionpublic boolean equals(java.lang.Object other)
equals in class NormalDistributionpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||