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

Generated by IDLdoc

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

stats/

mode.pro

topmode

stats

result = mode(array)

compute the moe of an array (most common element)

;; this is based on http://groups.google.com/group/comp.lang.idl-pvwave/browse_frm/thread/5684fa0a0c48b908/ad39df87b64b8567?lnk=gst&q=mode&rnum=3#ad39df87b64b8567

Return value

mode of the array

Parameters

array in required

array to calculate the mode of

Examples

IDL> print, mode([findgen(10),2]) 2.00000

Author information

History:

Mon Nov 26 13:08:27 2007, Brian Larsen changed from sort to bsort Mon Nov 26 09:42:06 2007, Brian Larsen documented, written previously

Statistics

Lines: 12
McCabe complexity:

File attributes

Modifcation date: Mon Sep 22 12:41:22 2008
Lines: 53