series (replaces TSeries)
The series function creates and 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 creates an array for the x-axis containing 100 numbers beginning at 10 and with a spacing of 5.4. An array for the y-axis is created containing 100 Gaussian Deviates. They are then graphed as a scatter plot.The result should show a Gaussian curve:
|
|
-- create an array of 100 numbers |
|
|
-- create an array of 100 Gaussian Deviates |
|
|
-- plot the histogram |
Mira Pro x64 Script User's Guide, v.8.80 Copyright Ⓒ 2025
Mirametrics, Inc. All Rights Reserved.