Click or drag to resize

Histogram Class

A class which computes histograms of data.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.StatisticsHistogram

Namespace: Altaxo.Calc.Statistics
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
[SerializableAttribute]
public class Histogram

The Histogram type exposes the following members.

Constructors
 NameDescription
Public methodHistogram Initializes a new instance of the Histogram class.
Public methodHistogram(IEnumerableDouble, Int32) Constructs a Histogram with a specific number of equally sized buckets. The upper and lower bound of the histogram will be set to the smallest and largest datapoint.
Public methodHistogram(IEnumerableDouble, Int32, Double, Double) Constructs a Histogram with a specific number of equally sized buckets.
Top
Properties
 NameDescription
Public propertyBucketCount Gets the number of buckets.
Public propertyDataCount Gets the total number of datapoints in the histogram.
Public propertyItem Gets the n'th bucket.
Public propertyLowerBound Returns the lower bound of the histogram.
Public propertyUpperBound Returns the upper bound of the histogram.
Top
Methods
 NameDescription
Public methodAddBucket Adds a Bucket to the Histogram.
Public methodAddData(Double) Add one data point to the histogram. If the datapoint falls outside the range of the histogram, the lowerbound or upperbound will automatically adapt.
Public methodAddData(IEnumerableDouble) Add a sequence of data point to the histogram. If the datapoint falls outside the range of the histogram, the lowerbound or upperbound will automatically adapt.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetBucketIndexOf Returns the index in the Histogram of the Bucket that contains the value v.
Public methodGetBucketOf Returns the Bucket that contains the value v.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString Prints the buckets contained in the Histogram.
(Overrides ObjectToString)
Top
See Also