@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,
java.util.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.
|
double |
getLocation()
Get the location aparameter.
|
double |
getScale()
Get the scale parameter.
|
static double |
logcdf(double val,
double loc,
double scale)
log Cumulative density function.
|
double |
logpdf(double val)
Return the log density of an existing value
|
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.
|
java.lang.String |
toString()
Describe the distribution
|
double location
double scale
public LogisticDistribution(double location, double scale)
location
- Locationscale
- Scalepublic LogisticDistribution(double location, double scale, java.util.Random random)
location
- Locationscale
- Scalerandom
- Random number generatorpublic LogisticDistribution(double location, double scale, RandomFactory random)
location
- Locationscale
- Scalerandom
- Random number generatorpublic double getLocation()
public double getScale()
public double pdf(double val)
Distribution
val
- existing valuepublic static double pdf(double val, double loc, double scale)
val
- Valueloc
- Locationscale
- Scalepublic double logpdf(double val)
Distribution
val
- existing valuepublic static double logpdf(double val, double loc, double scale)
val
- Valueloc
- Locationscale
- Scalepublic double cdf(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 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 java.lang.String toString()
Distribution
toString
in interface Distribution
toString
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.