CHistogram:Class Description CHistogram:Calc

new_histogram


The new_histogram function is a non-class version of the CHistogram:new method which creates and returns a new CHistogram object.

Syntax

H = new_histogram()

bullet.gif    H is returned as a new CHistogram object with properties initialized to default values.

bullet.gif    On failure, nil is returned.

Example

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

H = new_histogram()

-- create a Histogram object

y = H:Calc( gaussdev(1000000) )

-- compute a histogram

x = series(100)

-- create x axis values

stepline( x, y )

-- plot the histogram

H:delete()

-- clean up memory when done

Related Topics

CHistogram

new

delete


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.