Converts the array from source value range A-B to destination value range C-D. For example: converts values from 0-255 to 0.0 to 1.0.
int32 Normalize( Int32Iterator first, Int32Iterator last, int32 currMin, int32 currMax, int32 newMin, int32 newMax )
| Parameter Type | Parameter Name | Documentation |
|---|---|---|
| <Int32Iterator> | first | An iterator at the start of the range. |
| <Int32Iterator> | last | An iterator at the end of the range. |
| int32 | currMin | For the source range A-B, this value represents the current minimum, or A. |
| int32 | currMax | For the source range A-B, this value represents the current maximum, or B. |
| int32 | newMin | For the destination range C-D, this value represents the new minimum, or C. |
| int32 | newMax | For the destination range C-D, this value represents the new maximum, or D. |
None published. Please look for an example in the Simdify Scripting Language code base.