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.... |
Home MathPack OpenArrays Procedures and Functions RescaleArray | |||||||||||||||||||||||||||||||||||||||||||
See also: NormalizeRows, NormalizeColumns | |||||||||||||||||||||||||||||||||||||||||||
RescaleArray |
|||||||||||||||||||||||||||||||||||||||||||
Version [1]: The function performs a scaling operation on the one-dimensional array Arr affecting all array elements from First to Last. Version [2]: The scaling is applied to the range of cells of the two-dimensional array Arr given by the parameters LowCol, LowRow, HighCol, HighRow. The type of scaling is controlled by the parameter Mode. The variable parameters Par1 and Par2 contain the required scaling parameters on input and the characteristics of the data before the scaling operation on return:
The function returns the following error codes: 0 ... everything is OK |
Hint: | Setting both range limits (i.e. First and Last, or LowCol and HighCol, or LowRow and HighRow to zero values is a shortcut for processing all the cells of the respective dimension. For example, RescaleArray (Data, 0, 10, 0, 20, sctMeanCentered, Par1, Par2); mean-centers the entire rows from row 10 to row 20, as the column parameters LowCol and HighCol has been set to zero. |