public class ExponentialDistribution extends Object implements IntegrableDistribution<Double>, FirstOrderMoment<Double>, SecondOrderCentralMoment<Double>
| Modifier and Type | Field and Description |
|---|---|
protected double |
lambda |
| Constructor and Description |
|---|
ExponentialDistribution(double lambda)
Constructor for exponential distribution lambda*exp(-lambda*x) if x >= 0.
|
| Modifier and Type | Method and Description |
|---|---|
Double |
getCovariance() |
double |
getLambda() |
Double |
getMean() |
double |
P(Double x)
Evaluate probability distribution function P(X <= x)
|
void |
setLambda(double lambda) |
public ExponentialDistribution(double lambda)
lambda - public double P(Double x)
IntegrableDistributionP in interface IntegrableDistribution<Double>x - realization of random variable Xpublic Double getMean()
getMean in interface FirstOrderMoment<Double>public Double getCovariance()
getCovariance in interface SecondOrderCentralMoment<Double>public void setLambda(double lambda)
public double getLambda()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.