public class GeneralizedLogisticDistribution extends AbstractDistribution
pdf(x) = shape * Math.exp(-x) / (1 + Math.exp(-x))**(shape+1)
cdf(x) = Math.pow(1+Math.exp(-x), -shape)
Where shape=1
yields the regular logistic distribution.Modifier and Type | Class and Description |
---|---|
static class |
GeneralizedLogisticDistribution.Parameterizer
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
(package private) double |
location
Parameters: location and scale
|
(package private) double |
scale
Parameters: location and scale
|
(package private) double |
shape
Shape parameter, for generalized logistic distribution.
|
random
Constructor and Description |
---|
GeneralizedLogisticDistribution(double location,
double scale,
double shape)
Constructor.
|
GeneralizedLogisticDistribution(double location,
double scale,
double shape,
Random random)
Constructor.
|
GeneralizedLogisticDistribution(double location,
double scale,
double shape,
RandomFactory 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 val,
double loc,
double scale,
double shape)
Cumulative density function.
|
static double |
logcdf(double val,
double loc,
double scale,
double shape)
log Cumulative density function.
|
static double |
logpdf(double val,
double loc,
double scale,
double shape)
log Probability density function.
|
double |
nextRandom()
Generate a new random value
|
double |
pdf(double val)
Return the density of an existing value
|
static double |
pdf(double val,
double loc,
double scale,
double shape)
Probability density function.
|
double |
quantile(double val)
Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.
|
static double |
quantile(double val,
double loc,
double scale,
double shape)
Quantile function.
|
String |
toString()
Describe the distribution
|
double location
double scale
double shape
public GeneralizedLogisticDistribution(double location, double scale, double shape)
location
- Locationscale
- Scaleshape
- Shape parameterpublic GeneralizedLogisticDistribution(double location, double scale, double shape, Random random)
location
- Locationscale
- Scaleshape
- Shape parameterrandom
- Random number generatorpublic GeneralizedLogisticDistribution(double location, double scale, double shape, RandomFactory random)
location
- Locationscale
- Scaleshape
- Shape parameterrandom
- Random number generatorpublic static double pdf(double val, double loc, double scale, double shape)
val
- Valueloc
- Locationscale
- Scaleshape
- Shapepublic static double logpdf(double val, double loc, double scale, double shape)
val
- Valueloc
- Locationscale
- Scaleshape
- Shapepublic double pdf(double val)
Distribution
val
- existing valuepublic static double cdf(double val, double loc, double scale, double shape)
val
- Valueloc
- Locationscale
- Scaleshape
- Shapepublic static double logcdf(double val, double loc, double scale, double shape)
val
- Valueloc
- Locationscale
- Scaleshape
- Shapepublic double cdf(double val)
Distribution
val
- existing valuepublic static double quantile(double val, double loc, double scale, double shape)
val
- Valueloc
- Locationscale
- Scaleshape
- Shapepublic double quantile(double val)
Distribution
val
- Quantile to findpublic double nextRandom()
Distribution
nextRandom
in interface Distribution
nextRandom
in class AbstractDistribution
public String toString()
Distribution
toString
in interface Distribution
toString
in class Object