Histogram for discrete random values.

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

Syntax

C#
[SerializableAttribute]
public class Histogram

Remarks

The class wraps histogram for discrete stochastic function, which is represented by integer array, where indexes of the array are treated as values of the stochastic function, but array values are treated as "probabilities" (total amount of hits).

Sample usage:

CopyC#
// create histogram
Histogram histogram = new Histogram( new int[10] { 0, 0, 1, 3, 6, 8, 11, 0, 0, 0 } );
// get mean and standard deviation values
Console.WriteLine( "mean = " + histogram.Mean + ", std.dev = " + histogram.StdDev );

Inheritance Hierarchy

System..::.Object
  AForge.Math..::.Histogram

See Also