CHistogram:GetMax CHistogram:new

CHistogram:GetMin


The GetMin method returns the actual minimum value used by the histogram Calc method. This method is useful when the minimum value is not known either because the default binning was used or the SetBinAuto method was used.

Syntax

nMinVal = CHistogram:GetMin( )

Example

The following script retrieves the minimum value for use in setting up an x axis for plotting the histogram.

H = CHistogram:new()

-- create a Histogram object

v = GaussDev( 1000000 )

-- create this number of random deviates

y = H:Calc( v )

 

x = Index( H:GetBinCount(), H:GetMin()+H:GetBinWidth()/2, H:GetBinWidth() )

SteplinePlot( x, y )

-- plot the histogram using default settings

H:delete()

 

Related Topics

CHistogram Class, SetBinAuto, GetMax