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....



FillLayer


Unit: SDL_matrix
Class: TMat4D
Declaration: [1] procedure FillLayer (Layer: integer; value: double);
[2] function FillLayer (Layer, TimeSlot: integer; Mode: integer; par1, par2: double): integer;

Version [1] of the method FillLayer sets all elements of the specified Layer for all time slots to value. Version [2] is a bit more sophisticated: it fills the specified Layer in the specified TimeSlot with values depending on the Mode parameter:
Mode Type of Fill Parameters
0 contant value par1: value
par2: ignored
1 uniformly distributed values par1: lower limit
par2: upper limit
2 normally distributed values par1: mean
par2: standard deviation

The function (version [2]) returns the following error codes:

 0 ... everything is OK
-1 ... Layer is out of range
-2 ... TimeSlot is out of range
-3 ... invalid Mode



Last Update: 2020-Aug-12