Class GeneralizedLogisticAlternateDistribution
- java.lang.Object
-
- elki.math.statistics.distribution.GeneralizedLogisticAlternateDistribution
-
- All Implemented Interfaces:
Distribution
public class GeneralizedLogisticAlternateDistribution extends java.lang.Object implements Distribution
Generalized logistic distribution. One of multiple ways of generalizing the logistic distribution. Whereshape=0yields the regular logistic distribution.- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeneralizedLogisticAlternateDistribution.ParParameterization class-
Nested classes/interfaces inherited from interface elki.math.statistics.distribution.Distribution
Distribution.Parameterizer
-
-
Constructor Summary
Constructors Constructor Description GeneralizedLogisticAlternateDistribution(double location, double scale, double shape)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecdf(double val)Return the cumulative density function at the given value.static doublecdf(double val, double loc, double scale, double shape)Cumulative density function.doublegetLocation()Location parameterdoublegetScale()Scale parameterdoublegetShape()Shape parameterdoublelogpdf(double val)Return the log density of an existing valuestatic doublelogpdf(double val, double loc, double scale, double shape)Probability density function.doublenextRandom(java.util.Random random)Generate a new random valuedoublepdf(double val)Return the density of an existing valuestatic doublepdf(double val, double loc, double scale, double shape)Probability density function.doublequantile(double val)Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.static doublequantile(double val, double loc, double scale, double shape)Quantile function.java.lang.StringtoString()Describe the distribution
-
-
-
Method Detail
-
getScale
public double getScale()
Scale parameter- Returns:
- Scale
-
getShape
public double getShape()
Shape parameter- Returns:
- Shape
-
getLocation
public double getLocation()
Location parameter- Returns:
- Location
-
pdf
public static double pdf(double val, double loc, double scale, double shape)Probability density function.- Parameters:
val- Valueloc- Locationscale- Scaleshape- Shape- Returns:
-
pdf
public double pdf(double val)
Description copied from interface:DistributionReturn the density of an existing value- Specified by:
pdfin interfaceDistribution- Parameters:
val- existing value- Returns:
- distribution density
-
logpdf
public static double logpdf(double val, double loc, double scale, double shape)Probability density function.- Parameters:
val- Valueloc- Locationscale- Scaleshape- Shape- Returns:
-
logpdf
public double logpdf(double val)
Description copied from interface:DistributionReturn the log density of an existing value- Specified by:
logpdfin interfaceDistribution- Parameters:
val- existing value- Returns:
- log distribution density
-
cdf
public static double cdf(double val, double loc, double scale, double shape)Cumulative density function.- Parameters:
val- Valueloc- Locationscale- Scaleshape- Shape- Returns:
- CDF
-
cdf
public double cdf(double val)
Description copied from interface:DistributionReturn the cumulative density function at the given value.- Specified by:
cdfin interfaceDistribution- Parameters:
val- existing value- Returns:
- cumulative density
-
quantile
public static double quantile(double val, double loc, double scale, double shape)Quantile function.- Parameters:
val- Valueloc- Locationscale- Scaleshape- Shape- Returns:
- Quantile
-
quantile
public double quantile(double val)
Description copied from interface:DistributionQuantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.- Specified by:
quantilein interfaceDistribution- Parameters:
val- Quantile to find- Returns:
- Quantile position
-
nextRandom
public double nextRandom(java.util.Random random)
Description copied from interface:DistributionGenerate a new random value- Specified by:
nextRandomin interfaceDistribution- Parameters:
random- Random number generator- Returns:
- new random value
-
toString
public java.lang.String toString()
Description copied from interface:DistributionDescribe the distribution- Specified by:
toStringin interfaceDistribution- Overrides:
toStringin classjava.lang.Object- Returns:
- description
-
-