Table Functions
Table functions do math and other operations on numeric data stored in a Lua table used as an array. These functions are global so they can be used without creating any class object. All functions begin with a capital "T" followed by a capitalized name, like TSort or TMean.
These commands work on Lua tables as well as objects of the following classes: CImage, CArray, and CMatrix. Collectively, these are referred to as "data collections" in the descriptions below.
Creates a table of Gaussian random deviates and returns the table. |
|
Creates a histogram of data and returns it as a table. |
|
Lists the contents of a table, including the keys. |
|
Returns the maximum value of a data collection. |
|
Returns the minimum value of a data collection. |
|
Returns the mean and standard deviation of a data collection. |
|
Returns the median value of a data collection. |
|
Creates a table of uniform random deviates and returns the table. |
|
Reverses the order of values in a data collection and returns the collection. |
|
Returns the standard deviation of a data collection. |
|
Creates a table containing a series of uniformly spaced values and returns the table. |
|
Sorts 1 to 3 tables or CImage objects into ascending order, optionally using a sorting key. |
|
Sorts a data collection into ascending ("reverse") order and returns the collection. |
|
Returns the sum of values in a data collection. |