rem

Composes a function that applies a % (remainder) operation, point-wise, to this function's field result using values from another field as the divisors across their spatial intersection. The function result has no data where either of the fields have no data.

The function result has no data where the divisor drawn from the other field is zero.

The sign of this function's field result is preserved. For example, 7 % 3 (or -3) will result in 1 and -7 % 3 (or -3) will result in -1.

The function result extent is the intersection of the extents of the given fields.

The spatial reference of both fields must be equivalent.

Return

A function that applies a % (remainder) operation, point-wise, to this function's field result using values from another field as the divisors across their spatial intersection.

Since

300.1.0

Parameters

otherField

The discrete field function to draw the divisors from.


operator fun rem(divisor: Int): DiscreteFieldFunction

Composes a function that applies a % (remainder) operation, point-wise, to this function's field result. The function result has no data where this function's field result has no data.

The function result has no data when the divisor is zero.

The sign of this function's field result is preserved. For example, 7 % 3 (or -3) will result in 1 and -7 % 3 (or -3) will result in -1.

The function result extent equals that of this function's field result.

Return

A function that applies a % (remainder) operation to this function's field result.

Since

300.1.0

Parameters

divisor

The divisor.