@Alias(value="log") public class LogisticDistribution extends AbstractDistribution
Modifier and Type | Class and Description |
---|---|
static class |
LogisticDistribution.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
|
random
Constructor and Description |
---|
LogisticDistribution(double location,
double scale)
Constructor.
|
LogisticDistribution(double location,
double scale,
Random random)
Constructor.
|
LogisticDistribution(double location,
double scale,
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)
Cumulative density function.
|
static double |
logcdf(double val,
double loc,
double scale)
log Cumulative density function.
|
static double |
logpdf(double val,
double loc,
double scale)
log Probability density function.
|
static double |
logquantile(double val,
double loc,
double scale)
log Quantile 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)
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)
Quantile function.
|
String |
toString()
Describe the distribution
|
double location
double scale
public LogisticDistribution(double location, double scale)
location
- Locationscale
- Scalepublic LogisticDistribution(double location, double scale, Random random)
location
- Locationscale
- Scalerandom
- Random number generatorpublic LogisticDistribution(double location, double scale, RandomFactory random)
location
- Locationscale
- Scalerandom
- Random number generatorpublic static double pdf(double val, double loc, double scale)
val
- Valueloc
- Locationscale
- Scalepublic static double logpdf(double val, double loc, double scale)
val
- Valueloc
- Locationscale
- Scalepublic double pdf(double val)
Distribution
val
- existing valuepublic static double cdf(double val, double loc, double scale)
val
- Valueloc
- Locationscale
- Scalepublic static double logcdf(double val, double loc, double scale)
val
- Valueloc
- Locationscale
- Scalepublic double cdf(double val)
Distribution
val
- existing valuepublic static double quantile(double val, double loc, double scale)
val
- Valueloc
- Locationscale
- Scalepublic static double logquantile(double val, double loc, double scale)
val
- Valueloc
- Locationscale
- Scalepublic 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