Click or drag to resize
Accord.NET (logo)

Histogram Class

Histogram.
Inheritance Hierarchy
SystemObject
  Accord.Statistics.VisualizationsHistogram

Namespace:  Accord.Statistics.Visualizations
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
[SerializableAttribute]
public class Histogram : ICloneable
Request Example View Source

The Histogram type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAutoAdjustmentRule
Gets or sets the bin size auto adjustment rule to be used when computing this histogram from new data. Default is SquareRoot.
Public propertyBins
Gets the collection of bins of this Histogram.
Public propertyCumulative
Gets or sets whether this histogram represents a cumulative distribution.
Public propertyEdges
Gets the edges of each bin in this Histogram.
Public propertyInclusiveUpperBound
Gets or sets a value indicating whether the last bin should have an inclusive upper bound. Default is true.
Public propertyItem
Gets the Bin values of this Histogram.
Public propertyMax
Maximum value.
Public propertyMean
Mean value.
Public propertyMedian
Median value.
Public propertyMin
Minimum value.
Public propertyRange
Gets the Range of the values in this Histogram.
Public propertyStdDev
Standard deviation.
Public propertyTotalCount
Total count of values.
Public propertyValues
Gets the Bin values for this Histogram.
Top
Methods
  NameDescription
Public methodAdd(Int32)
Adds a value to each histogram bin.
Public methodAdd(Int32)
Adds one histogram from the other, storing results in a new histogram, without changing the current instance.
Public methodAdd(Histogram)
Adds one histogram from the other, storing results in a new histogram, without changing the current instance.
Public methodClone
Creates a new object that is a copy of the current instance.
Public methodCompute(Double)
Computes (populates) an Histogram mapping with values from a sample.
Public methodCompute(Double, Double)
Computes (populates) an Histogram mapping with values from a sample.
Public methodCompute(Double, Int32)
Computes (populates) an Histogram mapping with values from a sample.
Public methodCompute(Double, Int32, Boolean)
Computes (populates) an Histogram mapping with values from a sample.
Public methodCompute(Double, Int32, Double)
Computes (populates) an Histogram mapping with values from a sample.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFromData
Creates a histogram of values from a sample.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRange
Get range around median containing specified percentage of values.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMultiply(Int32)
Multiplies one histogram from the other, storing results in a new histogram, without changing the current instance.
Public methodMultiply(Int32)
Multiplies one histogram from the other, storing results in a new histogram, without changing the current instance.
Public methodStatic memberNumberOfBins
Computes the optimum number of bins based on a BinAdjustmentRule.
Public methodSubtract(Int32)
Subtracts a value to each histogram bin.
Public methodSubtract(Int32)
Subtracts one histogram from the other, storing results in a new histogram, without changing the current instance.
Public methodSubtract(Histogram)
Subtracts one histogram from the other, storing results in a new histogram, without changing the current instance.
Public methodToArray
Converts this histogram into an integer array representation.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Update statistical value of the histogram.
Top
Operators
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
Remarks

In a more general mathematical sense, a histogram is a mapping Mi that counts the number of observations that fall into various disjoint categories (known as bins).

This class represents a Histogram mapping of Discrete or Continuous data. To use it as a discrete mapping, pass a bin size (length) of 1. To use it as a continuous mapping, pass any real number instead.

Currently, only a constant bin width is supported.

See Also