Skip to content

Utils.Function.checkMonotonicallyIncreasing

Christian d'Heureuse edited this page Sep 25, 2026 · 1 revision

commons-math-interpolation / Utils / checkMonotonicallyIncreasing

Function: checkMonotonicallyIncreasing()

function checkMonotonicallyIncreasing(a): void;

Defined in: Utils.ts:117

Checks that all values of a number sequence are finite and that the sequence is monotonically increasing (non-decreasing). Adjacent values may be equal.

Parameters

a

ArrayLike<number>

The number sequence to be checked.

Returns

void

Throws

Error If a value is not finite or if the sequence is not monotonically increasing.

Clone this wiki locally