Click or drag to resize

Histogram Class

Represents a histogram.
Inheritance Hierarchy
SystemObject
  Meta.Numerics.StatisticsHistogram

Namespace:  Meta.Numerics.Statistics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public sealed class Histogram

The Histogram type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAboveRangeBin
Gets a bin for all values above the histogram range.
Public propertyBelowRangeBin
Gets a bin for all values below the histogram range.
Public propertyBins
Gets a collection of histogram bins.
Public propertyRange
The range of values in the histogram.
Public propertyTotalCounts
Gets the total number of counts in the histogram.
Top
Methods
  NameDescription
Public methodAdd(Double)
Adds a new value to the histogram.
Public methodAdd(Double, Int32)
Increments a histogram bin corredponding to value by the specified amount.
Public methodChiSquaredTest
Performs a χ2 test comparing the histogram to the given distribution.
Public methodClear
Sets all bin counts to zero.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

A histogram stores the number of occurrences of a value (called the count) within a set of ranges (called bins). It is the natural system to store discrete univariate data. The natural system to store continuous univariate data is the Sample class, but often histograms are also used for continuous data, for example because there is too much data to record each value individually.

See Also