Accord.Statistics.Measures.HistogramMax C# (CSharp) Method

HistogramMax() public static method

Gets the maximum value in the histogram.
public static HistogramMax ( this values ) : int
values this Histogram array.
return int
        public static int HistogramMax(this int[] values)
        {
            int max = 0;

            for (int i = 0; i < values.Length; i++)
                if (i > max)
                    max = i;

            return max;
        }