|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--drasys.or.prob.Distribution | +--drasys.or.prob.ContinuousDistribution | +--drasys.or.prob.GammaDistribution
An implementation of the Gamma probability distribution.
References:
The Art of Computer Programming: Seminumerical Algorithms (Vol 2, 3rd Ed)
Donald Ervin Knuth; Hardcover
Numerical Recipes in C : The Art of Scientific Computing
William H. Press, et al / Hardcover / Published 1993
Probability and Statistics
Morris H. Degroot / Hardcover / Published 1986
Mathematical Statistics With Applications
Dennis D. Wackerly, et al / Hardcover / Published 1996
Constructor Summary | |
GammaDistribution()
|
|
GammaDistribution(double alpha,
double beta)
|
|
GammaDistribution(double alpha,
double beta,
IntegrationI integration)
The argument integration will be used to compute the cdf from the pdf. |
|
GammaDistribution(double alpha,
double beta,
long seed)
|
Method Summary | |
double |
alpha()
Returns the value of the alpha parameter. |
double |
beta()
Returns the value of the beta parameter. |
double |
cdf(double x)
Computes the cdf by numerical integration using the pdf. |
boolean |
equals(java.lang.Object o)
|
double |
function(double x)
|
double |
getRandomScaler()
Returns a random number from the gamma distribution. |
double |
mean()
Returns the mean of the distribution. |
double |
pdf(double x)
Returns the value of the probability distribution function at x; |
double |
probability(double x1,
double x2)
Computes the the probability that x will be between x1 and x2 by numerical integration using the pdf. |
void |
setParameters(double alpha,
double beta)
Sets the distribution parameters. |
void |
setParameters(double alpha,
double beta,
double coefficient)
Sets the distribution parameters. |
double |
std()
Returns the standard deviation of the distribution. |
java.lang.String |
toString()
|
double |
variance()
Returns the variance of the distribution. |
Methods inherited from class drasys.or.prob.ContinuousDistribution |
inverseCdf,
probability |
Methods inherited from class drasys.or.prob.Distribution |
getRandomMatrix,
getRandomNumberGenerator,
getRandomVector,
setElements,
setElements,
setRandomNumberGenerator,
setSeed |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public GammaDistribution()
public GammaDistribution(double alpha, double beta)
public GammaDistribution(double alpha, double beta, long seed)
public GammaDistribution(double alpha, double beta, IntegrationI integration)
Method Detail |
public double function(double x)
public void setParameters(double alpha, double beta, double coefficient)
public void setParameters(double alpha, double beta)
public double alpha()
public double beta()
public double mean()
public double variance()
public double std()
public double getRandomScaler()
public double pdf(double x)
public double cdf(double x)
public double probability(double x1, double x2)
public boolean equals(java.lang.Object o)
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |