ContinuousHistogramMean Property |
Namespace: Accord.Math
The property allows to retrieve mean value of the histogram.
Sample usage:
// create histogram ContinuousHistogram histogram = new ContinuousHistogram( new int[] { 0, 0, 8, 4, 2, 4, 7, 1, 0 }, new Range( 0.0f, 1.0f ) ); // get mean value (= 0.505 ) Console.WriteLine( "mean = " + histogram.Mean.ToString( "F3" ) );