ee.Array.neq

On an element-wise basis, returns 1 iff the first value is not equal to the second.

UsageReturns
Array.neq(right)Array
ArgumentTypeDetails
this: leftArray

The left-hand value.

rightArray

The right-hand value.

Examples

JavaScript

var empty = ee.Array([], ee.PixelType.int8());
print(empty.neq(empty));  // []

print(ee.Array([0]).neq(ee.Array([1])));  // 1
print(ee.Array([1]).neq(ee.Array([1])));  // 0

print(ee.Array([1.1]).neq(ee.Array([1.1])));  // 0
print(ee.Array([1.1]).float().neq(ee.Array([1.1])));  // 1
print(ee.Array([1.1]).double().neq(ee.Array([1.1])));  // 0

print(ee.Array([1]).int8().neq(ee.Array([1])));  // 0
print(ee.Array([1]).int8().neq(ee.Array([1]).int32()));  // 0

Python

# Your example goes here!