ee.Number.unitScale

Scales the input so that the range of input values [min, max] becomes [0, 1]. Values outside the range are NOT clamped. If min == max, 0 is returned.

UsageReturns
ee.Number.unitScale(number, min, max)Float
ArgumentTypeDetails
numberFloat

minFloat

maxFloat

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!