>  Docs Center  >  Libraries  >  Buie  >  MEANERR2
Libraries

MEANERR2

MEANERR2

Name


meanerr2

Purpose (one Line)


Calculate the mean and estimated error for a set of weighted data points

Description


This routine is adapted from Program 5-1, XFIT, from "Data Reduction
and Error Analysis for the Physical Sciences", p. 76, by Philip R.
Bevington, McGraw Hill. This routine computes the weighted mean using
Instrumental weights (w=1/sigma^2). The final uncertainty is
insensitive to a multiplicative constant on the weights.

Category


Statistics

Calling Sequence


meanerr2,x,weight,xmean,xsigma

Inputs


x - Array of data points
weight - array of weights for data points

Optional Input Parameters


None.

Keyword Parameters


None.

Outputs


xmean - weighted mean
xsigma - uncertainty of xmean

Common Blocks


None.

Side Effects


None.

Restrictions


None.

Procedure


Modification History


Written by Marc W. Buie, Lowell Observatory, 2000/10/01
  2000/10/3, MWB, mostly WMG, it now works.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us