>  Docs Center  >  Libraries  >  Buie  >  MEANERR
Libraries

MEANERR

MEANERR

Name


meanerr

Purpose (one Line)


Calculate the mean and estimated errors for a set of 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).

Category


Statistics

Calling Sequence


meanerr,x,sigmax,xmean,sigmam,sigmad

Inputs


x - Array of data points
sigmax - array of standard deviations for data points

Optional Input Parameters


None.

Keyword Parameters


None.

Outputs


xmean - weighted mean
sigmam - standard deviation of mean
sigmad - standard deviation of data

Common Blocks


None.

Side Effects


None.

Restrictions


None.

Procedure


Modification History


Written by Marc W. Buie, Lowell Observatory, 1992 Feb 20



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