|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.distribution.AbstractDistribution
org.apache.commons.math.distribution.AbstractContinuousDistribution
org.apache.commons.math.distribution.WeibullDistributionImpl
public class WeibullDistributionImpl
Default implementation of
WeibullDistribution
.
Constructor Summary | |
---|---|
WeibullDistributionImpl(double alpha,
double beta)
Creates weibull distribution with the given shape and scale and a location equal to zero. |
Method Summary | |
---|---|
double |
cumulativeProbability(double x)
For this disbution, X, this method returns P(X < x ). |
double |
getScale()
Access the scale parameter. |
double |
getShape()
Access the shape parameter. |
double |
inverseCumulativeProbability(double p)
For this distribution, X, this method returns the critical point x, such that P(X < x) = p . |
void |
setScale(double beta)
Modify the scale parameter. |
void |
setShape(double alpha)
Modify the shape parameter. |
Methods inherited from class org.apache.commons.math.distribution.AbstractDistribution |
---|
cumulativeProbability |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.math.distribution.Distribution |
---|
cumulativeProbability |
Constructor Detail |
---|
public WeibullDistributionImpl(double alpha, double beta)
alpha
- the shape parameter.beta
- the scale parameter.Method Detail |
---|
public double cumulativeProbability(double x)
x
).
cumulativeProbability
in interface Distribution
x
- the value at which the CDF is evaluated.
x
.public double getShape()
getShape
in interface WeibullDistribution
public double getScale()
getScale
in interface WeibullDistribution
public double inverseCumulativeProbability(double p)
p
.
Returns Double.NEGATIVE_INFINITY
for p=0 and
Double.POSITIVE_INFINITY
for p=1.
inverseCumulativeProbability
in interface ContinuousDistribution
inverseCumulativeProbability
in class AbstractContinuousDistribution
p
- the desired probability
p
java.lang.IllegalArgumentException
- if p
is not a valid
probability.public void setShape(double alpha)
setShape
in interface WeibullDistribution
alpha
- the new shape parameter value.public void setScale(double beta)
setScale
in interface WeibullDistribution
beta
- the new scale parameter value.
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |