TriangularSample(Random, Double, Double, Double) Method |
Generates a sample from the Triangular distribution.
Namespace: Altaxo.Calc.DistributionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static double Sample(
Random rnd,
double lower,
double upper,
double mode
)
Parameters
- rnd Random
- The random number generator to use.
- 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
Return Value
Doublea sample from the distribution.
See Also