remainderFunction method

DiscreteFieldFunction remainderFunction(
  1. Int32Function divisor
)

Composes a function that applies a remainder operation, point-wise, to this function's field result.

A null divisor is interpreted as no data. The function result has no data where the divisor or this function's field result has no data, or when the divisor is zero.

The sign of this function's field result is preserved. That is, 7 remainder 3 (or -3) results in 1 and -7 remainder 3 (or -3) results in -1.

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

Parameters:

  • divisor — A function that returns the divisor.

Return Value: A function that applies a remainder operation to this function's field result.