CStats:Sdev
The Sdev method computes the standard deviation of a data sample. The parameters must contain numbers or strings that can be converted to numbers.
nSdev = CStats:Sdev( CImage, CRect ) nSdev = CStats:Sdev( CImage ) nSdev = CStats:Sdev( table ) nSdev = CStats:Sdev( n1,n2, n3, ... ) |
CRect is a
bounding rectangle for the CImage
objec.
table is a
1-dimensional array containing numbers.
n1, n2, n3,
... are numbers or string values that can be converted to
numbers.
On
success, returns the standard deviation.
On
failure, returns 0.
Suppose a CImage I and a CRect R exist. The following script returns the standard deviation relative to the simple arithmetic mean value inside a rectangle on the image:
|
-- create a CStats object |
-- specify CImage and CRect to measure |
|
|
-- return the standard deviation |
|
-- list the results |
|
-- when done with S, remove it from memory |
Mira Pro x64 Script User's Guide, v.8.77 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.