Constructs a Histogram instance with the specified number of equal-sized bins spanning the specified maximum and mininum values.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public Histogram(
	int numBins,
	double minValue,
	double maxValue
)
Visual Basic (Declaration)
Public Sub New ( _
	numBins As Integer, _
	minValue As Double, _
	maxValue As Double _
)
Visual C++
public:
Histogram(
	int numBins, 
	double minValue, 
	double maxValue
)

Parameters

numBins
Type: System..::.Int32
The number of bins. Must be greated than zero
minValue
Type: System..::.Double
The value for the left-hand endpoint of the first bin.
maxValue
Type: System..::.Double
The value for the right-hand endpoint of the last bin.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidBinBdryExceptionThrown if the specified maximum and minimum values are the same, or if the specified number of bins cannot be created.

See Also