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()
H = CHistogram:new( CHistogram2 )
where
The first form
with no creates a default CHistogram object with default
properties.
The second form
creates a new CHistogram object inedependent of, but having the
same properties as, an existing CHistogram2
object.
a new
CHistogram object H is
returned.
The following script creates a CHistogram object with default properties and uses it to calculate the histogram of a table of data.
|
-- create a Histogram object |
|
-- compute a histogram |
|
-- create x axis values for each histogram bin. |
|
-- plot the histogram |
|
-- clean up memory when done |