Documentation for /Users/balarsen/Documents/idl/larsen/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

./

min_nz.pro

topmin_nz

result = min_nz(data [, val] [, INDEX=INDEX])

find the minimum non-zero value of an array

only works on the positive part of an array, if the array has negative nalues they are treated as zeros

Return value

answer to the non zero minimum

Parameters

data in required

array to fund the min nonzero of

val in optional

what value is to to be considered zero

Keywords

INDEX in optional

indices of the "zeros"

Examples

a=min_nz(findgen(100)) print, a 1

Author information

History:

Mon Nov 17 17:12:29 2003, Brian Larsen Written and tested

Statistics

Lines: 12
McCabe complexity:

File attributes

Modifcation date: Tue Sep 9 13:55:33 2008
Lines: 52