minpos

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
Line 20: Line 20:
 
  0.000043186
 
  0.000043186
 
   
 
   
  dv> thm.minpos(a,ret=1)
+
  dv> thm.minpos(a,ret=1)
 
   
 
   
 
  Location: 58,471,1
 
  Location: 58,471,1

Revision as of 16:55, 4 March 2006



64-bit SafeYes

Description

Find the position of the minimum value in an array

Arguments and Return Values

Arguments: A numeric array

Return Value: A structure containing the minimum value and position

Usage

Syntax: thm.minpos(VAL, [ignore=VAL], [ret=BOOL])

'ignore' - The value to ignore while searching for maximum value.

'ret' - Set to 1 will return a structure containing value and position data.

Examples

dv> a
345x500x10 array of float, bsq format [6,900,000 bytes]
dv> thm.minpos(a)

Location: 58,471,1
0.000043186

dv> thm.minpos(a,ret=1)

Location: 58,471,1
0.000043186

struct, 2 elements
    pos: 3x1x1 array of int, bsq format [12 bytes]
    val: 4.31861e-05

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 07-06-2009

Personal tools