| Modifier and Type | Field and Description |
|---|---|
| private final double | a
Lower limit of this distribution (inclusive). |
| private final double | b
Upper limit of this distribution (inclusive). |
| private final double | c
Mode of this distribution. |
| private static final long | serialVersionUID
Hides org. |
| private final double | solverAbsoluteAccuracy
Hides org. |
| Access | Constructor and Description |
|---|---|
| public | TriangularDistribution(double
Lower limit of this distribution (inclusive). a, double Mode of this distribution. c, double Upper limit of this distribution (inclusive). b)Creates a triangular real distribution using the given lower limit, upper limit, and mode. |
| public | TriangularDistribution(RandomGenerator
Random number generator. rng, double Lower limit of this distribution (inclusive). a, double Mode of this distribution. c, double Upper limit of this distribution (inclusive). b)Creates a triangular distribution. |
| Modifier and Type | Method and Description |
|---|---|
| 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 | |
| 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. |
| protected double | getSolverAbsoluteAccuracy()
Overrides org. Returns the solver absolute accuracy for inverse cumulative computation. |
| public double | Returns: lower bound of the supportImplements org. Access the lower bound of the support. |
| public double | Returns: upper bound of the supportImplements 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. |
| a | back to summary |
|---|---|
| private final double a Lower limit of this distribution (inclusive). | |
| b | back to summary |
|---|---|
| private final double b Upper limit of this distribution (inclusive). | |
| c | back to summary |
|---|---|
| private final double c Mode of this distribution. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Serializable version identifier. | |
| solverAbsoluteAccuracy | back to summary |
|---|---|
| private final double solverAbsoluteAccuracy Hides org. Inverse cumulative probability accuracy. | |
| TriangularDistribution | back to summary |
|---|---|
| public TriangularDistribution(double a, double c, double b) throws NumberIsTooLargeException, NumberIsTooSmallException Creates a triangular real distribution using the given lower limit, upper limit, and mode. Note this constructor will implicitly create an instance of
| |
| TriangularDistribution | back to summary |
|---|---|
| public TriangularDistribution(RandomGenerator rng, double a, double c, double b) throws NumberIsTooLargeException, NumberIsTooSmallException Creates a triangular distribution.
| |
| 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
| |
| getMode | back to summary |
|---|---|
| public double getMode() Returns the mode
| |
| 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.
For lower limit
| |
| 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.
For lower limit
| |
| getSolverAbsoluteAccuracy | back to summary |
|---|---|
| protected double getSolverAbsoluteAccuracy() Overrides org. Doc from org. Returns the solver absolute accuracy for inverse cumulative computation. You can override this method in order to use a Brent solver with an absolute accuracy different from the default.
For this distribution, the returned value is not really meaningful,
since exact formulas are implemented for the computation of the
For lower limit
| |
| 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
a of the distribution.
| |
| 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
b of the distribution.
| |
| inverseCumulativeProbability | back to summary |
|---|---|
| public double inverseCumulativeProbability(double p) throws OutOfRangeException Overrides org. Implements org. Doc from org. Computes the quantile function of this distribution. For a random
variable
| |
| 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
| |