DiscretizeMatrix

Declaration: DiscretizeMatrix (var Data: TDouble2DArray; NSteps: integer; InLow, InHigh, OutLow, OutHigh: double): integer;
The function DiscretizeMatrix applies a staircase function to the data matrix. The staircase function transforms the continuous values in the matrix Data to discrete values. The parameter NSteps defines the number of steps the output value should have. The parameters InLow, InHigh, OutLow and OutHigh control the transfer function according to the figure below:

The function returns the number of cells which had values greater than or equal to Thresh.