Triangular(Double, Double, Double, Random) Constructor |
Initializes a new instance of the Triangular class with the given lower bound, upper bound and mode.
Namespace: Altaxo.Calc.DistributionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public Triangular(
double lower,
double upper,
double mode,
Random randomSource
)
Parameters
- lower Double
- Lower bound. Range: lower ≤ mode ≤ upper
- upper Double
- Upper bound. Range: lower ≤ mode ≤ upper
- mode Double
- Mode (most frequent value). Range: lower ≤ mode ≤ upper
- randomSource Random
- The random number generator which is used to draw random samples.
Exceptions Exception | Condition |
---|
ArgumentException | If the upper bound is smaller than the mode or if the mode is smaller than the lower bound. |
See Also