CStats:Rank and CStats:RankSdev
The Rank method computes the percentile ranked value for a data object.
nValue = CStats:Rank( CImage, nPercentile, CRect ) nValue = CStats:Rank( CImage, nPercentile ) nValue = CStats:Rank( table, nPercentile ) nValue, Sdev = CStats:RankSdev( CImage, nPercentile, CRect ) nValue, Sdev = CStats:RankSdev( CImage, nPercentile ) nValue, Sdev = CStats:RankSdev( table, nPercentile ) |
CRect is a bounding rectangle for the CImage object.
nPercentile is a number in the range 0 through 100.
table is a 1-dimensional array containing numbers.
On success, returns the percentile value and standard deviation.
On failure, returns 0, 0.
Suppose a CImage named I and a CRect named R exist. The following script returns the value for rank percentile 32.5 inside a rectangle on the image:
|
-- create a CStats object |
-- specify CImage and CRect to measure |
|
|
-- returns the value at the 32.5 percentile |
|
-- list the results |
|
-- when done with S, remove it from memory |
CStats class, CImage class, CRect class, Median
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.