Histogram Class |
Namespace: Meta.Numerics.Statistics
The Histogram type exposes the following members.
Name | Description | |
---|---|---|
Histogram(IListDouble) |
Create a histogram with the given bin borders.
| |
Histogram(Int32) |
Creates a histogram with the given number of bins.
|
Name | Description | |
---|---|---|
AboveRangeBin |
Gets a bin for all values above the histogram range.
| |
BelowRangeBin |
Gets a bin for all values below the histogram range.
| |
Bins |
Gets a collection of histogram bins.
| |
Range |
The range of values in the histogram.
| |
TotalCounts |
Gets the total number of counts in the histogram.
|
Name | Description | |
---|---|---|
Add(Double) |
Adds a new value to the histogram.
| |
Add(Double, Int32) |
Increments a histogram bin corredponding to value by the specified amount.
| |
ChiSquaredTest |
Performs a χ2 test comparing the histogram to the given distribution.
| |
Clear |
Sets all bin counts to zero.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
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.