Array Functions
These functions work with lua tables containing only values that are numbers, no keys, and no sub-tables. This special type of table is called an Array. Nearly all of these functions support only 1-dimensional arrays which, by definition, contain no sub-tables that add dimensions to the 1-dimensional array. However, the arraytoimage function supports 2-dimensional arrays. Most of these functions work with a CImage class object. Several also work with a CArray class object or a list of numbers.
Array Functions |
|
Adds a number to the members of a 1-dimensional array, CImage object, a single number. |
|
Converts a 1- or 2-dimensional array to a 1- or 2-dimensional CImage object. |
|
Divides a number into the members of a 1-dimensional array, CImage object, or single number. |
|
Returns the dot product of two class objects or 1-dimensional arrays of numbers. |
|
Fits a polynomial function of n coefficients to (x, y) data with an optional weight array. |
|
Fits a polynomial function of n x m coefficients to (x, y, z) data with an optional weight array. |
|
Returns a 1-dimensional array of Gaussian random deviates (numbers). Also see gaussdev1. |
|
Computes the histogram of a 1-dimensional array and returns it in a table. This uses the CHistogram class function. Also see histplot. |
|
Lists the contents of a table. |
|
Returns the maximum value in a 1-dimensional array, CImage object, or list of numbers. |
|
Returns the maximum value in a 1-dimensional array, CImage object, or list of numbers. |
|
Returns the mean value for an array, CImage object, or list of numbers. |
|
Returns the mean and standard deviation for an array, CImage object, or list of numbers. |
|
Returns the median value for a 1-dimensional array, CImage object, or list of numbers. |
|
Returns the median and standard deviation for a 1-dimensional array, CImage object, or list of numbers. |
|
Returns the minimum value in a 1-dimensional array, CImage object, or list of numbers. |
|
Returns the minimum value in a 1-dimensional array, CImage object, or list of numbers. |
|
Multiples each member of a 1-dimensional array, CImage object, or a number, by a specified number. |
|
Normalizes the numbers of a 1-dimensional array, CImage or CArray object, so their sum is 1.0. |
|
Returns a 1-dimensional array of uniformly distributed random numbers. Also see random1. |
|
Reverses a 1-dimensional array with regard to the order of the array indices. |
|
Rounds a 1-dimensional array to the nearest integer. |
|
Returns the standard deviation of a 1-dimensional array or list of numbers. |
|
Returns a 1-dimensional array containing uniformly spaced numbers. |
|
Sorts the numbers of a 1-dimensional array into ascending order. |
|
Sorts the numbers of a 1-dimensional array into descending order. |
|
Returns a 1-dimensional array of 8 elements containing basic statistics for a 1-dimensional array. The returned values include the mean, median, minimum, maximum, standard deviation, skewness, kurtosis, and number of points. |
|
Subtracts a number from the members of a 1-dimensional array or number. |
|
Returns the sum of a 1-dimensional array or list of numbers. |
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.