(vector[res-1] < arg && arg <= vector[res])
Also the scale factor for interpolating is returned. For linear interpolation
arg = vector[res-1] + fraction*(vector[res]-vector[res-1])
or
arg = (1-fraction)*vector[res-1] + fraction*vector[res]
If arg exists in vector, the result is such that
arg = vector[res]
i.e., fraction is one (except when arg = vector[0], then res = 1 and fraction = 0).
public static int GetInterval(
double arg,
double[] vector,
out double fraction,
int lastInterval
)[Missing <returns> documentation for "M:DHI.Mike1D.Generic.MathUtil.GetInterval(System.Double,System.Double[],System.Double@,System.Int32)"]