public static int GetInterval( double arg, int count, Func<int, double> vectorValue, out double fraction, int lastInterval )