Table of Contents

Method IndexOfMax

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

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.