Click or drag to resize

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.Distributions
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
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
ExceptionCondition
ArgumentExceptionIf the upper bound is smaller than the mode or if the mode is smaller than the lower bound.
See Also