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,
Random random)
Constructor.
|
WeibullDistribution(double k,
double lambda,
double theta,
RandomFactory random)
Constructor.
|
WeibullDistribution(double k,
double lambda,
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 |
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
|
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, Random random)
k
- Shape parameterlambda
- Scale parameterrandom
- Random number generatorpublic WeibullDistribution(double k, double lambda, double theta, 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 pdf(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 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 String toString()
Distribution
toString
in interface Distribution
toString
in class Object
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.