ee.Array.signum

Stay organized with collections Save and categorize content based on your preferences.
On an element-wise basis, computes the signum function (sign) of the input; zero if the input is zero, 1 if the input is greater than zero, -1 if the input is less than zero.

UsageReturns
Array.signum()Array
ArgumentTypeDetails
this: inputArrayThe input array.