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.InterpolationAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxprotected 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| Exception | Condition |
|---|
| ArgumentException | Thrown when the array is empty or not strictly increasing. |
See Also