public class RayleighDistribution extends AbstractDistribution
Modifier and Type | Class and Description |
---|---|
static class |
RayleighDistribution.Parameterizer
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
(package private) double |
mu
Location parameter.
|
(package private) double |
sigma
Scale parameter.
|
random
Constructor and Description |
---|
RayleighDistribution(double sigma)
Constructor.
|
RayleighDistribution(double mu,
double sigma)
Constructor.
|
RayleighDistribution(double mu,
double sigma,
Random random)
Constructor.
|
RayleighDistribution(double mu,
double sigma,
RandomFactory random)
Constructor.
|
RayleighDistribution(double sigma,
Random random)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
cdf(double val)
Return the cumulative density function at the given value.
|
static double |
cdf(double x,
double sigma)
CDF of Rayleigh distribution
|
double |
nextRandom()
Generate a new random value
|
double |
pdf(double x)
Return the density of an existing value
|
static double |
pdf(double x,
double sigma)
PDF of Rayleigh distribution
|
double |
quantile(double val)
Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.
|
static double |
quantile(double val,
double sigma)
Quantile function of Rayleigh distribution
|
String |
toString()
Describe the distribution
|
public RayleighDistribution(double sigma)
sigma
- Scale parameterpublic RayleighDistribution(double mu, double sigma)
mu
- Position parametersigma
- Scale parameterpublic RayleighDistribution(double sigma, Random random)
sigma
- Scale parameterrandom
- Random number generatorpublic RayleighDistribution(double mu, double sigma, Random random)
mu
- Position parametersigma
- Scale parameterrandom
- Random number generatorpublic RayleighDistribution(double mu, double sigma, RandomFactory random)
mu
- Position parametersigma
- Scale parameterrandom
- Random number generatorpublic double pdf(double x)
Distribution
x
- existing valuepublic static double pdf(double x, double sigma)
x
- Valuesigma
- Scalepublic double cdf(double val)
Distribution
val
- existing valuepublic static double cdf(double x, double sigma)
x
- Valuesigma
- Scale parameterpublic double quantile(double val)
Distribution
val
- Quantile to findpublic static double quantile(double val, double sigma)
val
- Valuesigma
- Scale parameterpublic double nextRandom()
Distribution
nextRandom
in interface Distribution
nextRandom
in class AbstractDistribution
public String toString()
Distribution
toString
in interface Distribution
toString
in class Object