Mean value.

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

Syntax

C#
public double Mean { get; }

Remarks

The property allows to retrieve mean value of the histogram.

Sample usage:

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

See Also