Click or drag to resize

MathUtil.StrictlyMonotonIndex<T> Method (T[], Comparison<T>)

Checks if vector xTable is strictly monoton and increasing

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public static int StrictlyMonotonIndex<T>(
	T[] xTable,
	Comparison<T> comparer
)

Parameters

xTable
Type:T[]
Vector that must be checked
comparer
Type: System.Comparison<T>
Comparer used for testing monotonicity

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:DHI.Mike1D.Generic.MathUtil.StrictlyMonotonIndex``1(``0[],System.Comparison{``0})"]

Return Value

Type: Int32
-1 if vector is monoton, index of first violating value if non-monoton
See Also