CStats Class
The CStats class computes statistics or estimator values for numeric data. The data may be in the form of a Lua Table or an object of class CImage, CArray, or CMatrix. For the CImage and CMatrix classes, you can optionally specify a rectangle that bounds the data region. For a CImage, the data may have multiple channels, as for an RGB image. This class uses the same algorithms as the CImCombine class.
Some of the methods in this class have equivalent non-class functions that do not use the CStats class; see Table Functions.
Construction |
Object = CStats:new() |
Destruction |
Object:delete() |
This class has no exposed properties.
Creates a new instance of the CImage class. |
|
Deletes the CStats object from memory. |
Attaches an image and rectangle to the CStats object for measurements. You can use this method if you want to measure only CImage objects. (Deprecated - do not use in new scripts) |
|
Returns the error message for a method failed. |
|
Returns a non-zero error code if a method failed. |
Computes the contra-power mean and standard deviation. |
|
Computes the geometric mean and standard deviation. |
|
Computes the mean and standard deviation. |
|
Computes the median and standard deviation. |
|
Computes the standard deviation. |
|
Computes the standard deviation about the specified value. |
|
Computes the Y-power Mean and standard deviation. |
Computes the alpha-clipped mean and standard deviation after clipping nHigh and nLow values from the distribution. |
|
Computes the mean value with the maximum data value discarded, plus the standard deviation. |
|
Computes the mean value with the minimum data value discarded, plus the standard deviation. |
|
Computes the mean value with its minimum and maximum data values discarded, plus the standard deviation. |
|
Computes the Modified Trimmed Mean and standard deviation. |
|
Computes the rank percentile clipped mean and the standard deviation. |
|
Computes the sigma clipped mean and standard deviation. |
|
Computes the standard deviation after clipping the nHigh highest and nLow lowest values from the distribution. |
|
Computes the standard deviation about a specified mean, after clipping the nHigh highest and nLow lowest values from the sample. |
Computes the kurtosis parameter for assessing the peakiness of the data distribution. |
|
Computes the maximum value and its coordinate. |
|
Computes the coordinate of the maximum value. |
|
Computes the minimum value and its coordinate. |
|
Computes the coordinate of the minimum value. |
|
Computs the n-th moment of the data distribution. |
|
Computes the percentile rank value and standard deviation. |
|
Computes the skewness parameter for assessing the symmetry of the data distribution. |
|
Computes the standard deviation. |
|
Computes the standard deviation about the specified value. |