mglib

Personal IDL library for M. Galloy

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

collection/

mg_min.pro


Routines

top mg_min

result = mg_min(iterable [, min_subscript] [, key_method=string] [, key_function=string] [, /absolute] [, dimension=long] [, max=any] [, /nan] [, subscript_max=any])

Returns minimum of an array or object which supports FOREACH loops.

Return value

any

Parameters

iterable in required type=array/object

array or object which supports FOREACH loops

min_subscript out optional type=any

array index or key type of object corresponding to the minimum value of iterable

Keywords

key_method in optional type=string

name of method to call on the items of iterable to determine their value; this method should be a function with no arguments required and returning a type which supports comparing with GT and LT

key_function in optional type=string

name of function to determine the value of the items of iterable; this function should accept one positional parameter (the item of iterable) and return a type which supports comparing with GT and LT

absolute in optional type=boolean

set to use the absolute value of the values in iterable to compare for the minimum/maximum value, though the return value will be the original value in iterable

dimension in optional type=long

dimension over which to find the minimum values of an array when iterable is an array and KEY_FUNCTION is not used; otherwise it is ignored

max out optional type=any

maximum value

nan in optional type=boolean

set to ignore NaN values in arrays; not used if iterable is an object or if KEY_FUNCTION is present

subscript_max out optional type=any

array index or key type of object corresponding to the maximum value of iterable

File attributes

Modification date: Wed May 14 15:07:14 2014
Lines: 90
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.