Click or drag to resize

CurveBaseThrowIfIsNotMonotonicallyIncreasing Method

Throws an ArgumentException if a is not monotonically increasing (each element is greater than or equal to its predecessor). Also throws if the array is empty.

Namespace: Altaxo.Calc.Interpolation
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
protected static void ThrowIfIsNotMonotonicallyIncreasing(
	IReadOnlyList<double> a,
	string argumentName
)

Parameters

a  IReadOnlyListDouble
The array to validate.
argumentName  String
Name of the argument to include in the exception.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when the array is empty or not monotonically increasing.
See Also