public class WalkMaxDistribution extends Distribution implements java.io.Serializable
CONTINUOUS, DISCRETE, MIXED
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getCDF, getDomain, getFailureRate, getMean, getMedian, getMGF, getMoment, getMoment, getPGF, getQuantile, getSD, getType, getVariance, setDomain, setDomain
public WalkMaxDistribution(int n)
n
- the number of stepspublic WalkMaxDistribution()
public void setSteps(int n)
n
- the number of stepspublic double getDensity(double x)
getDensity
in class Distribution
x
- a number in the domain of the distributionpublic double getMaxDensity()
getMaxDensity
in class Distribution
public double getSteps()
public double simulate()
simulate
in class Distribution
public java.lang.String toString()
toString
in class Distribution