| Modifier and Type | Field and Description |
|---|---|
| public static final double | DEFAULT_INVERSE_ABSOLUTE_ACCURACY
Default inverse cumulative probability accuracy. |
| private double | numericalMean
Cached numerical mean |
| private boolean | numericalMeanIsCalculated
Whether or not the numerical mean has been calculated |
| private double | numericalVariance
Cached numerical variance |
| private boolean | numericalVarianceIsCalculated
Whether or not the numerical variance has been calculated |
| private final double | scale
The scale parameter. |
| private static final long | serialVersionUID
Hides org. |
| private final double | shape
The shape parameter. |
| private final double | solverAbsoluteAccuracy
Hides org. |
| Access | Constructor and Description |
|---|---|
| public | WeibullDistribution(double
Shape parameter. alpha, double Scale parameter. beta)Create a Weibull distribution with the given shape and scale and a location equal to zero. |
| public | WeibullDistribution(double
Shape parameter. alpha, double Scale parameter. beta, double Maximum absolute error in inverse
cumulative probability estimates
(defaults to inverseCumAccuracy)DEFAULT_INVERSE_ABSOLUTE_ACCURACY).Create a Weibull distribution with the given shape, scale and inverse cumulative probability accuracy and a location equal to zero. |
| public | WeibullDistribution(RandomGenerator
Random number generator. rng, double Shape parameter. alpha, double Scale parameter. beta)Creates a Weibull distribution. |
| public | WeibullDistribution(RandomGenerator
Random number generator. rng, double Shape parameter. alpha, double Scale parameter. beta, double Maximum absolute error in inverse
cumulative probability estimates
(defaults to inverseCumAccuracy)DEFAULT_INVERSE_ABSOLUTE_ACCURACY).Creates a Weibull distribution. |
| Modifier and Type | Method and Description |
|---|---|
| protected double | |
| protected double | Returns: the variance of this distributionused by |
| public double | cumulativeProbability(double
the point at which the CDF is evaluated x)Implements org. For a random variable |
| public double | density(double
the point at which the PDF is evaluated x)Implements org. Returns the probability density function (PDF) of this distribution
evaluated at the specified point |
| public double | getNumericalMean()
Implements org. Use this method to get the numerical value of the mean of this distribution. |
| public double | getNumericalVariance()
Implements org. Use this method to get the numerical value of the variance of this distribution. |
| public double | |
| public double | |
| protected double | Returns: the solver absolute accuracy.Overrides org. Return the absolute accuracy setting of the solver used to estimate inverse cumulative probabilities. |
| public double | Returns: lower bound of the support (always 0)Implements org. Access the lower bound of the support. |
| public double | Returns: upper bound of the support (alwaysDouble.POSITIVE_INFINITY)Implements org. Access the upper bound of the support. |
| public double | inverseCumulativeProbability(double
the cumulative probability p)Overrides org. Implements org. Computes the quantile function of this distribution. |
| public boolean | Returns: trueImplements org. Use this method to get information about whether the support is connected, i.e. whether all values between the lower and upper bound of the support are included in the support. |
| public boolean | isSupportLowerBoundInclusive()
Implements org. Whether or not the lower bound of support is in the domain of the density function. |
| public boolean | isSupportUpperBoundInclusive()
Implements org. Whether or not the upper bound of support is in the domain of the density function. |
| public double | logDensity(double
the point at which the PDF is evaluated x)Overrides org. Returns the natural logarithm of the probability density function (PDF) of this distribution
evaluated at the specified point |
| DEFAULT_INVERSE_ABSOLUTE_ACCURACY | back to summary |
|---|---|
| public static final double DEFAULT_INVERSE_ABSOLUTE_ACCURACY Default inverse cumulative probability accuracy.
| |
| numericalMean | back to summary |
|---|---|
| private double numericalMean Cached numerical mean | |
| numericalMeanIsCalculated | back to summary |
|---|---|
| private boolean numericalMeanIsCalculated Whether or not the numerical mean has been calculated | |
| numericalVariance | back to summary |
|---|---|
| private double numericalVariance Cached numerical variance | |
| numericalVarianceIsCalculated | back to summary |
|---|---|
| private boolean numericalVarianceIsCalculated Whether or not the numerical variance has been calculated | |
| scale | back to summary |
|---|---|
| private final double scale The scale parameter. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Serializable version identifier. | |
| shape | back to summary |
|---|---|
| private final double shape The shape parameter. | |
| solverAbsoluteAccuracy | back to summary |
|---|---|
| private final double solverAbsoluteAccuracy Hides org. Inverse cumulative probability accuracy. | |
| WeibullDistribution | back to summary |
|---|---|
| public WeibullDistribution(double alpha, double beta) throws NotStrictlyPositiveException Create a Weibull distribution with the given shape and scale and a location equal to zero. Note this constructor will implicitly create an instance of
| |
| WeibullDistribution | back to summary |
|---|---|
| public WeibullDistribution(double alpha, double beta, double inverseCumAccuracy) Create a Weibull distribution with the given shape, scale and inverse cumulative probability accuracy and a location equal to zero. Note this constructor will implicitly create an instance of
| |
| WeibullDistribution | back to summary |
|---|---|
| public WeibullDistribution(RandomGenerator rng, double alpha, double beta) throws NotStrictlyPositiveException Creates a Weibull distribution.
| |
| WeibullDistribution | back to summary |
|---|---|
| public WeibullDistribution(RandomGenerator rng, double alpha, double beta, double inverseCumAccuracy) throws NotStrictlyPositiveException Creates a Weibull distribution.
| |
| calculateNumericalMean | back to summary |
|---|---|
| protected double calculateNumericalMean() used by
| |
| calculateNumericalVariance | back to summary |
|---|---|
| protected double calculateNumericalVariance() used by
| |
| cumulativeProbability | back to summary |
|---|---|
| public double cumulativeProbability(double x) Implements org. Doc from org. For a random variable
| |
| density | back to summary |
|---|---|
| public double density(double x) Implements org. Doc from org. Returns the probability density function (PDF) of this distribution
evaluated at the specified point
| |
| getNumericalMean | back to summary |
|---|---|
| public double getNumericalMean() Implements org. Doc from org. Use this method to get the numerical value of the mean of this
distribution.
The mean is
| |
| getNumericalVariance | back to summary |
|---|---|
| public double getNumericalVariance() Implements org. Doc from org. Use this method to get the numerical value of the variance of this
distribution.
The variance is
| |
| getScale | back to summary |
|---|---|
| public double getScale() Access the scale parameter,
| |
| getShape | back to summary |
|---|---|
| public double getShape() Access the shape parameter,
| |
| getSolverAbsoluteAccuracy | back to summary |
|---|---|
| protected double getSolverAbsoluteAccuracy() Overrides org. Return the absolute accuracy setting of the solver used to estimate inverse cumulative probabilities.
| |
| getSupportLowerBound | back to summary |
|---|---|
| public double getSupportLowerBound() Implements org. Doc from org. Access the lower bound of the support. This method must return the same
value as
| |
| getSupportUpperBound | back to summary |
|---|---|
| public double getSupportUpperBound() Implements org. Doc from org. Access the upper bound of the support. This method must return the same
value as
| |
| inverseCumulativeProbability | back to summary |
|---|---|
| public double inverseCumulativeProbability(double p) Overrides org. Implements org. Doc from org. Computes the quantile function of this distribution. For a random
variable
0 when p == 0 and
Double.POSITIVE_INFINITY when p == 1.
| |
| isSupportConnected | back to summary |
|---|---|
| public boolean isSupportConnected() Implements org. Doc from org. Use this method to get information about whether the support is connected, i.e. whether all values between the lower and upper bound of the support are included in the support. The support of this distribution is connected.
| |
| isSupportLowerBoundInclusive | back to summary |
|---|---|
| public boolean isSupportLowerBoundInclusive() Implements org. Doc from org. Whether or not the lower bound of support is in the domain of the density
function. Returns true iff
| |
| isSupportUpperBoundInclusive | back to summary |
|---|---|
| public boolean isSupportUpperBoundInclusive() Implements org. Doc from org. Whether or not the upper bound of support is in the domain of the density
function. Returns true iff
| |
| logDensity | back to summary |
|---|---|
| public double logDensity(double x) Overrides org. Doc from org. Returns the natural logarithm of the probability density function (PDF) of this distribution
evaluated at the specified point
| |