Click or drag to resize

CurveBaseThrowIfIsNotStrictlyMonotonicallyIncreasing Method

Throws an ArgumentException if a is not strictly monotonically increasing. Also throws if the array is empty. If the array contains NaN, the comparison will fail and an exception will be thrown.

Namespace: Altaxo.Calc.Interpolation
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
protected static void ThrowIfIsNotStrictlyMonotonicallyIncreasing(
	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 strictly increasing.
See Also