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 SummaryConstructors Constructor and Description Rayleigh()Default constructor.Rayleigh(double s)Create a distribution with the scale parameter.
 - 
Method SummaryAll 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- 
Rayleighpublic Rayleigh() Default constructor. The scale parameter is set to one.
 - 
Rayleighpublic Rayleigh(double s) Create a distribution with the scale parameter.- Parameters:
- s- the scale parameter.
 
 
- 
 - 
Method Detail- 
cumulativeProbabilitypublic double cumulativeProbability(double x) The CDF for this distribution. This method returns P(X < x).- Specified by:
- cumulativeProbabilityin class- ContinuousDistribution
- Parameters:
- x- the value at which the CDF is evaluated.
- Returns:
- CDF for this distribution.
 
 - 
getScalepublic double getScale() Access the scale parameter.- Returns:
- the scale parameter.
 
 - 
inverseCumulativeProbabilitypublic double inverseCumulativeProbability(double p) The inverse CDF for this distribution. This method returns x such that, P(X < x) = p.- Specified by:
- inverseCumulativeProbabilityin class- ContinuousDistribution
- Parameters:
- p- the cumulative probability.
- Returns:
- x
 
 - 
setScalepublic void setScale(double s) Modify the scale parameter.- Parameters:
- s- The new scale parameter value.
 
 
- 
 
- 
DMelt 3.0 © DataMelt by jWork.ORG