idllib

Personal IDL library for M. Galloy

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

analysis/

mg_range.pro


top source mg_range

result = mg_range(arr)

Convenience function to compute the minimum and maximm value of an array.

Return value

fltarr(2)

Parameters

arr in required type=any numeric array

variable to compute min/max range of

Examples

For example, find the minimum and maximum values of 10 random values:

IDL> print, mg_range(randomu(0L, 10)) 0.0668422 0.930436

File attributes

Modification date: Wed Sep 14 10:28:33 2011
Lines: 23
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.