series (replaces TSeries)
The series function returns a 1-dimensional array containing a uniformly spaced sequence of numbers.
tbl = series( nCount )
tbl = series( nCount, nMin, nStep )
nCount is the number of table value to create.
nMin is the minimum value of the sequence. If omitted, it is 1.0.
nStep is the interval between numbers in the sequence. If omitted, it is set to 1.0.
tbl is the returned 1-d array containing nCount values.
On failure, nil is returned.
The following script returns a 1-dimensional array containing 100 numbers starting at 10 with a spacing of 5.4, then plots them as a histogram:
|
-- create a table of 100 numbers |
|
-- create a Histogram object |
|
-- compute the histogram |
|
-- plot the histogram |
|
|
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.