Total count of values.

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

Syntax

C#
public long TotalCount { get; }

Remarks

The property represents total count of values contributed to the histogram, which is essentially sum of the Values array.

Sample usage:

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

See Also