Please enable JavaScript to view this site.

Function that returns a scaling of the input parameter. Normalizes a variable that is in a given input range by bringing it into a given output range.

Syntax

real range_adj (real inValue, real inLow, real inHigh, real outLow, real outHigh)

inValue

Input value

inLow

Lower limit of the input variable

inHigh

Upper limit of the input variable

outLow

Lower limit of the normalized variable

outHigh

Upper limit of the normalized variable

Result

Returns the normalized value calculated as:

((inValue - inLow) /(inHigh - inLow)) *(outHigh - outLow) + outLow

Validity

Rule, Task

System Requirements

RC3E 33.9.0

Note

In the case where inHigh - inLow is equal to 0.0, the function returns outLow

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC