SCLNONLIN Function
Performs general scaling of array values (generalizes SCL).
Usage
c = SCLNONLIN(a, p, b)
Input Parameters
a—The real array.
p—The increasing n-element array defining a partition of a.
b—The n+1-element array of values for the output array.
Keyword Parameters
None.
Returned Value
c—An array of the same type as b and same dimensions as a:
*if a(j) < p(0) then c(j) = b(0).
*if p(i) a(j) < p(i+1) then c(j) = b(i+1).
*if p(n–1) a(j) then c(j) = b(n).
Example
a = DIST(640, 512)
p = MAX(a) / [4, 3, 2]
b = 255 / [4, 3, 2, 1]
TV, SCLNONLIN(a, p, b)
Output
This example produces the plot shown in Figure 16-1: SCLNONLIN Plot.
 
Figure 16-1: SCLNONLIN Plot
See Also