StatRandom.RandomTriangular Method

void RandomTriangular(Double a, Double b, Double c, TDenseMtxVec results, Int32 Seed)

Triangular distribution random generator.

#NameTypeDescription
1aDoublescalar
2bDoublescalar
3cDoublescalar
4resultsTDenseMtxVecsource TVec or TMtx
5SeedInt32

Result: stored in self (calling object)

Remarks:

This routine generates Result.Length pseudo random numbers, using the triangular distribution with parameters a,b and c. The random numbers are stored in the Results vector. An exception is raised if Result vector is complex.

Examples
using Dew.Math;
using Dew.Stats.Units;
namespace Dew.Examples
{
    private void Example()
    {
        Vector r = new Vector(2000,false);
        StatRandom.RandomTriangular(2.2, 8.0, 5.5, r, -1);
    }
}