CHistogram:new
The new method constructs a new instance of a CHistogram object. You must call new before using any class methods or properties.
H = CHistogram:new()
The following script creates a CHistogram object and uses it to calculate a histogram of data.
|
-- create a Histogram object |
|
-- compute a histogram |
|
-- create x axis values |
|
-- plot the histogram |
|
-- clean up memory when done |