The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



FillRandomNormal


Unit:SDL_openarrays
Class: none
Declaration: [1] function FillRandomNormal (var Arr: TDoubleArray; Mean, StdDev: double): integer;
[2] function FillRandomNormal (var Arr: TDouble2DArray; Mean, StdDev: double): integer;
[3] function FillRandomNormal (var Arr: TDouble3DArray; Mean, StdDev: double): integer;
[4] function FillRandomNormal (var Arr: TDouble4DArray; Mean, StdDev: double): integer;

The function FillRandomNormal fills every cell of the given array Arr with a random number with normal distribution about the given mean (parameter Mean) and the given standard deviation (parameter StdDev).

The function returns the following error codes:

 0 ... everything is OK
-1 ... the matrix Arr has zero size
-2 ... StdDev must not be negative



Last Update: 2023-Feb-06