public class KappaDistribution extends AbstractDistribution
Modifier and Type | Class and Description |
---|---|
static class |
KappaDistribution.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 |
shape1
Shape parameters.
|
(package private) double |
shape2
Shape parameters.
|
random
Constructor and Description |
---|
KappaDistribution(double location,
double scale,
double shape1,
double shape2)
Constructor.
|
KappaDistribution(double location,
double scale,
double shape1,
double shape2,
java.util.Random random)
Constructor.
|
KappaDistribution(double location,
double scale,
double shape1,
double shape2,
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 shape1,
double shape2)
Cumulative density function.
|
static double |
logcdf(double val,
double shape1,
double shape2)
Cumulative density function, for location = 0, scale = 1
|
static double |
logcdf(double val,
double loc,
double scale,
double shape1,
double shape2)
Cumulative density function.
|
double |
logpdf(double val)
Return the log density of an existing value
|
static double |
logpdf(double val,
double loc,
double scale,
double shape1,
double shape2)
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 shape1,
double shape2)
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 shape1,
double shape2)
Quantile function.
|
java.lang.String |
toString()
Describe the distribution
|
double location
double scale
double shape1
double shape2
public KappaDistribution(double location, double scale, double shape1, double shape2)
location
- Locationscale
- Scaleshape1
- Shape parametershape2
- Shape parameterpublic KappaDistribution(double location, double scale, double shape1, double shape2, java.util.Random random)
location
- Locationscale
- Scaleshape1
- Shape parametershape2
- Shape parameterrandom
- Random number generatorpublic KappaDistribution(double location, double scale, double shape1, double shape2, RandomFactory random)
location
- Locationscale
- Scaleshape1
- Shape parametershape2
- Shape parameterrandom
- Random number generatorpublic static double pdf(double val, double loc, double scale, double shape1, double shape2)
val
- Valueloc
- Locationscale
- Scaleshape1
- Shape parametershape2
- Shape parameterpublic double pdf(double val)
Distribution
val
- existing valuepublic static double logpdf(double val, double loc, double scale, double shape1, double shape2)
val
- Valueloc
- Locationscale
- Scaleshape1
- Shape parametershape2
- Shape parameterpublic double logpdf(double val)
Distribution
val
- existing valuepublic static double cdf(double val, double loc, double scale, double shape1, double shape2)
val
- Valueloc
- Locationscale
- Scaleshape1
- Shape parametershape2
- Shape parameterpublic static double logcdf(double val, double loc, double scale, double shape1, double shape2)
val
- Valueloc
- Locationscale
- Scaleshape1
- Shape parametershape2
- Shape parameterpublic static double logcdf(double val, double shape1, double shape2)
val
- Valueshape1
- Shape parametershape2
- Shape parameterpublic double cdf(double val)
Distribution
val
- existing valuepublic static double quantile(double val, double loc, double scale, double shape1, double shape2)
val
- Valueloc
- Locationscale
- Scaleshape1
- Shape parametershape2
- Shape parameterpublic 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.