public class WeibullDistribution extends AbstractDistribution
Modifier and Type | Class and Description |
---|---|
static class |
WeibullDistribution.Parameterizer
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
(package private) double |
k
Shape parameter k.
|
(package private) double |
lambda
Lambda parameter.
|
(package private) double |
theta
Shift offset.
|
random
Constructor and Description |
---|
WeibullDistribution(double k,
double lambda)
Constructor.
|
WeibullDistribution(double k,
double lambda,
double theta)
Constructor.
|
WeibullDistribution(double k,
double lambda,
double theta,
java.util.Random random)
Constructor.
|
WeibullDistribution(double k,
double lambda,
double theta,
RandomFactory random)
Constructor.
|
WeibullDistribution(double k,
double lambda,
java.util.Random 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 k,
double lambda,
double theta)
CDF of Weibull distribution
|
double |
getK()
Get the shape k parameter.
|
double |
getLambda()
Get the scale lambda parameter.
|
double |
getTheta()
Get the shift theta parameter.
|
double |
logpdf(double x)
Return the log density of an existing value
|
static double |
logpdf(double x,
double k,
double lambda,
double theta)
PDF of Weibull distribution
|
double |
nextRandom()
Generate a new random value
|
double |
pdf(double x)
Return the density of an existing value
|
static double |
pdf(double x,
double k,
double lambda,
double theta)
PDF of Weibull distribution
|
double |
quantile(double val)
Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.
|
static double |
quantile(double val,
double k,
double lambda,
double theta)
Quantile function of Weibull distribution
|
java.lang.String |
toString()
Describe the distribution
|
double theta
double k
double lambda
public WeibullDistribution(double k, double lambda)
k
- Shape parameterlambda
- Scale parameterpublic WeibullDistribution(double k, double lambda, double theta)
k
- Shape parameterlambda
- Scale parametertheta
- Shift offset parameterpublic WeibullDistribution(double k, double lambda, java.util.Random random)
k
- Shape parameterlambda
- Scale parameterrandom
- Random number generatorpublic WeibullDistribution(double k, double lambda, double theta, java.util.Random random)
k
- Shape parameterlambda
- Scale parametertheta
- Shift offset parameterrandom
- Random number generatorpublic WeibullDistribution(double k, double lambda, double theta, RandomFactory random)
k
- Shape parameterlambda
- Scale parametertheta
- Shift offset parameterrandom
- Random number generatorpublic double getK()
public double getLambda()
public double getTheta()
public double pdf(double x)
Distribution
x
- existing valuepublic double logpdf(double x)
Distribution
x
- existing valuepublic static double pdf(double x, double k, double lambda, double theta)
x
- Valuek
- Shape parameterlambda
- Scale parametertheta
- Shift offset parameterpublic static double logpdf(double x, double k, double lambda, double theta)
x
- Valuek
- Shape parameterlambda
- Scale parametertheta
- Shift offset parameterpublic static double cdf(double val, double k, double lambda, double theta)
val
- Valuek
- Shape parameterlambda
- Scale parametertheta
- Shift offset parameterpublic double cdf(double val)
Distribution
val
- existing valuepublic static double quantile(double val, double k, double lambda, double theta)
val
- Valuek
- Shape parameterlambda
- Scale parametertheta
- Shift offset 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.