@Alias(value={"fisk","loglog"}) public class LogLogisticDistribution extends AbstractDistribution
Modifier and Type | Class and Description |
---|---|
static class |
LogLogisticDistribution.Parameterizer
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
(package private) double |
location
Parameters: scale, location, and shape
|
(package private) double |
scale
Parameters: scale, location, and shape
|
(package private) double |
shape
Parameters: scale, location, and shape
|
random
Constructor and Description |
---|
LogLogisticDistribution(double shape,
double location,
double scale)
Constructor.
|
LogLogisticDistribution(double shape,
double location,
double scale,
java.util.Random random)
Constructor.
|
LogLogisticDistribution(double shape,
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 shape,
double location,
double scale)
Cumulative density function.
|
double |
getLocation()
Get the distribution location.
|
double |
getScale()
Get the distribution scale.
|
double |
getShape()
Get the distribution shape.
|
double |
logpdf(double val)
Return the log density of an existing value
|
static double |
logpdf(double val,
double shape,
double location,
double scale)
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 shape,
double location,
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 shape,
double location,
double scale)
Quantile function.
|
java.lang.String |
toString()
Describe the distribution
|
double scale
double location
double shape
public LogLogisticDistribution(double shape, double location, double scale)
shape
- Shapelocation
- Locationscale
- Scalepublic LogLogisticDistribution(double shape, double location, double scale, java.util.Random random)
shape
- Shapelocation
- TODOscale
- Scalerandom
- Random number generatorpublic LogLogisticDistribution(double shape, double location, double scale, RandomFactory random)
shape
- Shapelocation
- TODOscale
- Scalerandom
- Random number generatorpublic double getShape()
public double getLocation()
public double getScale()
public double pdf(double val)
Distribution
val
- existing valuepublic static double pdf(double val, double shape, double location, double scale)
val
- Valueshape
- Shapelocation
- TODOscale
- Scalepublic double logpdf(double val)
Distribution
val
- existing valuepublic static double logpdf(double val, double shape, double location, double scale)
val
- Valueshape
- Shapelocation
- Locationscale
- Scalepublic double cdf(double val)
Distribution
val
- existing valuepublic static double cdf(double val, double shape, double location, double scale)
val
- Valueshape
- Shapelocation
- Locationscale
- Scalepublic double quantile(double val)
Distribution
val
- Quantile to findpublic static double quantile(double val, double shape, double location, double scale)
val
- Valueshape
- Shapelocation
- TODOscale
- Scalepublic double nextRandom()
Distribution
nextRandom
in interface Distribution
nextRandom
in class AbstractDistribution
public java.lang.String toString()
Distribution
toString
in interface Distribution
toString
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.