CStats:Skewness
The Skewness method computes the statistical skewness of a data sample.
Skewness characterizes the symmetry of the distribution of values in the sample. A skewness value of 0 describes a symmetric distribution. Skewness greater than 0 indicates a positive bias ("positive tail") and skewness less than 0 indicates a negative bias ("negative tail").
| 
 nSkewness = CStats:Skewness( CImage, CRect ) nSkewness = CStats:Skewness( CImage ) nSkewness = CStats:Skewness( 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, Kurtosis, CImage class, CRect class
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.