CHistogram:GetMin CHistogram:SetBinAuto

CHistogram:new


The new method constructs a new instance of a CHistogram object. You must call new before using any class methods or properties.

Syntax

H = CHistogram:new()

Example

The following script creates a CHistogram object and uses it to calculate a histogram of data.

H = CHistogram:new()

-- create a Histogram object

y = H:Calc( GaussDev(1000000) )

-- compute a histogram

x = Index(100)

-- create x axis values

SteplinePlot( x, y )

-- plot the histogram

H:delete()

-- clean up memory when done

Related Topics

CHistogram, delete