Chris Beaumont's IDL Library

Download source code

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

./

wmean.pro

topwmean

Statistics

result = wmean(val, dval [, nan=nan] [, error=error])

Calculates the weighted mean of a set of measurements.

Return value

The weighted mean

MODIFICATION HISTORY April 2009 Written by Chris Beaumont April 23 2009 fixed integer truncation bug

Parameters

val
dval in required

The error on each data value

Keywords

nan in optional

If set, treat NANs as missing data

error in optional

Set to a named variable to hold the error on the weighted mean

File attributes

Modifcation date: Mon Mar 22 16:17:13 2010
Lines: 58