jhplot.math.num.pdf
Class Rayleigh
- java.lang.Object
-
- jhplot.math.num.pdf.ContinuousDistribution
-
- jhplot.math.num.pdf.Rayleigh
-
- All Implemented Interfaces:
- Distribution
public class Rayleigh extends ContinuousDistribution
The Rayleigh distribution.
References:
- Eric W. Weisstein. "Rayleigh Distribution." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/Rayleigh.html
- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor and Description Rayleigh()Default constructor.Rayleigh(double s)Create a distribution with the scale parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecumulativeProbability(double x)The CDF for this distribution.doublegetScale()Access the scale parameter.doubleinverseCumulativeProbability(double p)The inverse CDF for this distribution.voidsetScale(double s)Modify the scale parameter.
-
-
-
Constructor Detail
-
Rayleigh
public Rayleigh()
Default constructor. The scale parameter is set to one.
-
Rayleigh
public Rayleigh(double s)
Create a distribution with the scale parameter.- Parameters:
s- the scale parameter.
-
-
Method Detail
-
cumulativeProbability
public double cumulativeProbability(double x)
The CDF for this distribution. This method returns P(X < x).- Specified by:
cumulativeProbabilityin classContinuousDistribution- Parameters:
x- the value at which the CDF is evaluated.- Returns:
- CDF for this distribution.
-
getScale
public double getScale()
Access the scale parameter.- Returns:
- the scale parameter.
-
inverseCumulativeProbability
public double inverseCumulativeProbability(double p)
The inverse CDF for this distribution. This method returns x such that, P(X < x) = p.- Specified by:
inverseCumulativeProbabilityin classContinuousDistribution- Parameters:
p- the cumulative probability.- Returns:
- x
-
setScale
public void setScale(double s)
Modify the scale parameter.- Parameters:
s- The new scale parameter value.
-
-
DMelt 3.0 © DataMelt by jWork.ORG