|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.totem.util.distribution.InverseNormalDistribution
public class InverseNormalDistribution
This class implements an inverse normal distribution. The pdf of the distribution is sqrt(lambda/(2*pi*x^3)) * exp(-lambda/(2*mu^2*x) * (x-mu)^2).
This distribution is also known as the inverse gaussian distribution or the Wald distribution.
The implementation was taken from Zabel's dissertation. In this text, the minus sign in the square root of eq. (4.53) must be replaced by a plus sign.
Creation date: 14-juil.-2005
Constructor Summary | |
---|---|
InverseNormalDistribution(double mu,
double lambda)
Initialises a newly created inverse normal distribution. |
Method Summary | |
---|---|
double |
generate()
Returns a double value according to the inverse normal
distribution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InverseNormalDistribution(double mu, double lambda)
mu
- The location parameter of the inverse normal distribution.lambda
- The scale parameter of the inverse normal distribution.Method Detail |
---|
public double generate()
double
value according to the inverse normal
distribution.
generate
in interface Distribution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |