cityImage.normalize#
- cityImage.normalize(n, range1, range2)[source]#
Normalizes a value n from one range to another range.
- Parameters:
n (float or int) – The value to be normalized.
range1 (tuple or list) – The original range of values [min, max] from which n is taken.
range2 (tuple or list) – The target range of values [min, max] to which n will be normalized.
- Returns:
The normalized value of n in the target range.
- Return type:
float or int