Please enable JavaScript to view this site.

Function to calculate a normalized value between 0 and 1.

Syntax

real normalize (real value, real offset, real cycle)

value

Expression that provides the data to be normalized

offset

Expression giving the start position of the cycle

cycle

Expression providing the length of the reference cycle

Result

Returns a value between 0.0 (included) and 1.0 (excluded), calculated by the following formula:

result = abs_mod ((value - offset), cycle)

Validity

Rule, Task

Note

If the input parameter value exactly coincides with the start/end of a cycle, the normalize() function always returns 0.0 . The function therefore never returns the value 1.0

 

  

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