CHistogram:new
The new method constructs a new instance of a CHistogram object. You must call new before using any class methods or properties. Note that the object can also be created using new_histogram.
H = CHistogram:new()
    H is
returned as a new CHistogram object with properties
initialized to default values.
    on
failure, nil is
returned.
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  | 
CHistogram, delete, new_histogram
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.