|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uah.math.distributions.Distribution
edu.uah.math.distributions.WalkMaxDistribution
public class WalkMaxDistribution
This class models the distribution of the maximum value of a symmetric random walk on the interval [0, n].
| Field Summary |
|---|
| Fields inherited from class edu.uah.math.distributions.Distribution |
|---|
CONTINUOUS, DISCRETE, MIXED |
| Constructor Summary | |
|---|---|
WalkMaxDistribution()
This default constructor creates a new walk max distribution with time parameter 10. |
|
WalkMaxDistribution(int n)
This general constructor creates a new max walk distribution with a specified time parameter. |
|
| Method Summary | |
|---|---|
double |
getDensity(double x)
This method defines the density function. |
double |
getMaxDensity()
This method returns the maximum value of the density function. |
double |
getSteps()
This method returns the time parameter. |
void |
setSteps(int n)
This method sets the time parameter. |
double |
simulate()
This method simulates a value from the distribution. |
java.lang.String |
toString()
This method returns a string that gives the name of the distribution and the values of the parameters. |
| Methods inherited from class edu.uah.math.distributions.Distribution |
|---|
getCDF, getDomain, getFailureRate, getMean, getMedian, getMGF, getMoment, getMoment, getPGF, getQuantile, getSD, getType, getVariance, setDomain, setDomain |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WalkMaxDistribution(int n)
n - the number of stepspublic WalkMaxDistribution()
| Method Detail |
|---|
public void setSteps(int n)
n - the number of stepspublic double getDensity(double x)
getDensity in class Distributionx - a number in the domain of the distribution
public double getMaxDensity()
getMaxDensity in class Distributionpublic double getSteps()
public double simulate()
simulate in class Distributionpublic java.lang.String toString()
toString in class Distribution
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||