Maximum value.

Namespace:  AForge.Math
Assembly:  AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public int Max { get; }

Remarks

The property allows to retrieve maximum value of the histogram with non zero hits count.

Sample usage:

CopyC#
// create histogram
Histogram histogram = new Histogram( new int[10] { 0, 0, 1, 3, 6, 8, 11, 0, 0, 0 } );
// get max value (= 6)
Console.WriteLine( "max = " + histogram.Max );

See Also