CStats:Kurtosis
The Kurtosis method computes the statistical skewness. Kurtosis measures the "peakiness" (or flatness) of the distribution of values in the sample.
The return value is adjusted to a reference value of 0 for the Normal ("Gaussian") distribution. A kurtosis value greater than 0 indicates that the distribution is taller than a Normal distribution (too narrow, or "leptokurtic"). Conversely, a kurtosis value less than 0 indicates the distribution is flatter than a Normal distribution (too flat, or "platykurtic"). By definition, the Normal distribution has the reference ratio of central area to tail area adjusted to 0, and is called "mesokurtic".
nKurtosis = CStats:Kurtosis( CImage, CRect ) nKurtosis = CStats:Kurtosis( CImage ) nKurtosis = CStats:Kurtosis( table ) |
CRect is a bounding rectangle for the CImage object.
table is a 1-dimensional array containing numbers.
On success, returns the skewness.
On failure, returns 0.
Suppose a CImage named I and a CRect named R exist. The following script returns the skewness inside a rectangle on the image:
|
-- create a CStats object |
-- specify CImage and CRect to measure |
|
|
-- returns the skewness |
|
-- list the results |
|
-- when done with S, remove it from memory |
CStats class, Mean, Skewness, CImage class, CRect class
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.