RandomNextTriangular Method |
Generate a pseudorandom number from a triangular distribution on
the interval (0,1).
Namespace: Imsl.StatAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public virtual double NextTriangular()
Public Overridable Function NextTriangular As Double
public:
virtual double NextTriangular()
abstract NextTriangular : unit -> float
override NextTriangular : unit -> float
Return Value
Type:
Double
A
double which specifies a pseudorandom number from a
triangular distribution on the interval (0,1).
Remarks
The probability density function is
,
for
, and
, for
.
NextTriangular uses an inverse CDF technique.
See Also