series (replaces TSeries)
The series function returns a 1-dimensional array containing a uniformly spaced list of numbers.
tbl = series( nCount )
tbl = series( nCount, nMin, nStep )
nCount is the number of Gaussian Deviates 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 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 |
|
|
Table and Array Functions, random, CStats class
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.