minpos
Line 4: | Line 4: | ||
Arguments: A numeric array | Arguments: A numeric array | ||
− | Return Value: A | + | Return Value: A 3x1x1 INT array containing the [x,y,z] position of the minimum value |
| | | | ||
− | [[Syntax]]: thm.minpos(data = VAL [, | + | [[Syntax]]: thm.minpos(data = VAL [, iter = INT] [, ignore = VAL] [, gt = VAL]) |
'data' - Any numeric array | 'data' - Any numeric array | ||
− | |||
− | |||
'iter' - Number of lowest values desired | 'iter' - Number of lowest values desired | ||
'ignore' - The value to ignore while searching for maximum value. | 'ignore' - The value to ignore while searching for maximum value. | ||
+ | |||
+ | 'gt' - Search for a minimum value about this 'greater than' value. | ||
| | | | ||
dv> a | dv> a | ||
Line 20: | Line 20: | ||
dv> thm.minpos(a) | dv> thm.minpos(a) | ||
+ | 3x1x1 array of int, bsq format [12 bytes] | ||
+ | 1 1 1 | ||
− | + | dv> thm.minpos(a,gt=2) | |
− | + | 3x1x1 array of int, bsq format [12 bytes] | |
− | + | 3 1 1 | |
− | dv> thm.minpos(a, | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | dv> thm.minpos(a,iter=2) | |
− | + | 3x2x1 array of int, bsq format [24 bytes] | |
− | + | 1 1 1 | |
+ | 1 2 2 | ||
| | | | ||
| | | |
Revision as of 16:07, 26 August 2006
Contents: Description, Arguments, Usage, Examples, Related Functions Supported Under Version: >1.69 Current Davinci Version: 2.27 64-bit Safe: Yes
Description Find the position of the minimum value in an array
Arguments and Return Values Arguments: A numeric array Return Value: A 3x1x1 INT array containing the [x,y,z] position of the minimum value
Usage Syntax: thm.minpos(data = VAL [, iter = INT] [, ignore = VAL] [, gt = VAL]) 'data' - Any numeric array 'iter' - Number of lowest values desired 'ignore' - The value to ignore while searching for maximum value. 'gt' - Search for a minimum value about this 'greater than' value.
Examples dv> a 345x500x10 array of float, bsq format [6,900,000 bytes] dv> thm.minpos(a) 3x1x1 array of int, bsq format [12 bytes] 1 1 1 dv> thm.minpos(a,gt=2) 3x1x1 array of int, bsq format [12 bytes] 3 1 1 dv> thm.minpos(a,iter=2) 3x2x1 array of int, bsq format [24 bytes] 1 1 1 1 2 2 |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Related Functions
Recent Core Changes Modified On: 07-06-2009 |