Represents a histogram.

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Class Histogram _
	Inherits DataArrayBase _
	Implements ICloneable
C#
public class Histogram : DataArrayBase, ICloneable
C++
public ref class Histogram : public DataArrayBase, ICloneable

Methods

IconTypeDescription
AddTotals(Double[]())
Adds the specified values to the total for each bin in a Histogram.
Clear()
Clears the values in all bins of a Histogram.
Clone()
Creates a copy of this Histogram.
CopyTo(Double[](), Int32)
Copies the values to a Double array.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
FindBin(Double)
Finds the HistogramBin corresponding to the given value.
GetBounds()
Gets an array containing the bounds of the bins in a Histogram.
GetGoodnessOfFitTest(Distribution, Int32)
Returns a ChiSquareGoodnessOfFitTest object to test if the distribution follows the specified distribution.
GetGoodnessOfFitTest(Histogram)
Returns a ChiSquareGoodnessOfFitTest object to test if the distribution follows the specified distribution specified as a histogram.
GetHashCode()
Serves as a hash function for a particular type.
GetLength(Int32)
Returns an integer that represents the number of elements in the specified dimension of the DataArrayBase.
GetLinearIndex(Int32[]())
Gets the linear index corresponding to the specified dimension indexes.
GetLinearIndex(Object)
Returns the linearized index of the cell at the specified index in the DataArrayBase.
GetLinearIndex(Object, Object)
Returns the linearized index of the cell with the specified indexes in a two-dimensional DataArrayBase.
GetLinearIndex(Object, Object, Object)
Returns the linearized index of the cell with the specified indexes in a three-dimensional DataArrayBase.
GetScale(Int32)
Returns the CategoricalScale associated with the specified dimension.
GetTotals()
Returns an array containing the totals in each bin in a Histogram.
GetType()
Gets the Type of the current instance.
GetValuesArray()
Gets the array of data values of the DataArrayBase.
Increment(Double, Double)
Increments a bin of a histogram whose range contains a value by the specified amount.
Increment(Double)
Increments a bin of a histogram whose range contains a value by 1.
MemberwiseClone()
Creates a shallow copy of the current Object.
SetScale(CategoricalScale, Object[]())
Sets the CategoricalScale for a one-dimensional DataArrayBase.
SetScales(CategoricalScale[](), Object[]())
Sets the CategoricalScale for all dimensions a multi-dimensional DataArrayBase.
SetTotals(Double[]())
Sets the total for each bin in a Histogram.
Tabulate(Double[]())
Enters data from a Double array into a histogram.
Tabulate(Double[](), Double[]())
Enters data from a Double array into a histogram.
Tabulate(NumericalVariable)
Enters data from a numerical variable into a histogram.
Tabulate(NumericalVariable, NumericalVariable)
Enters data from a numerical variable into a histogram.
Tabulate(Vector)
Enters data from a numerical vector into a histogram.
Tabulate(Vector, Vector)
Enters data from a numerical vector into a histogram.
ToString()
Returns a String that represents the current Object.

Constructors

IconTypeDescription
HistogramNew(NumericalScale)
Constructs a new Histogram.
HistogramNew(Double[]())
Constructs a new Histogram.
HistogramNew(Double[](), SpecialBins)
Constructs a new Histogram.
HistogramNew(Double, Double, Int32, SpecialBins)
Constructs a new Histogram using bins of equal width.
HistogramNew(Double, Double, Int32)
Constructs a new Histogram using bins of equal width.
HistogramNew(Int32, Int32)
Constructs a new Histogram using bins for all integers from zero up to the specified upper bound.

Properties

IconTypeDescription
Bins
Returns the HistogramBinCollection for this histogram.
DataLength
Gets the total number of data cells in the DataArrayBase.
Length
Gets the total number of cells in the design.
Rank
Gets the rank (number of dimensions) of the DataArrayBase.
TotalValue
Gets the sum of all bin values.

Remarks

Use the Histogram class to represent frequency data. Every histogram object has an associated NumericalScale that defines the categories into which the data is to be sorted.

The Bins collection contains the individual bins. To tabulate individual values, use the Increment(Double, Double) method. To tabulate all of a variable's observations, use the Tabulate(Double[]()) method.

The bin totals can be retrieved using the GetTotals() method, and set and cleared using the SetTotals(Double[]()) and Clear() methods.

To test how well a histogram fits a distribution, use one of the GetGoodnessOfFitTest(Distribution, Int32) methods.

Inheritance Hierarchy

System.Object
  Extreme.Statistics.DataArrayBase
    Extreme.Statistics.Histogram