Method IndexOfMax
IndexOfMax(params double[])
Searches for the largest value and returns the index of its occurrence in a one-dimensional array.
public static int IndexOfMax(params double[] values)
Parameters
values
double[]The one-dimensional array to search.
Returns
- int
The index of the largest value the in array, if found; otherwise -1.