next up previous 278
Next: CCG_TMN3x - Forms the n-trimmed mean of the given set of ordered data. This variant does not process variances
Up: Routine Descriptions
Previous: CCG_TM3x - Combines data lines using a trimmed mean


CCG_TMN2x - Forms the n-trimmed mean of the given set of ordered data

Description:
The routine forms the trimmed mean of the given dataset. The IGNORE upper and lower ordered values are removed from consideration. Then the remaining values are added and averaged. The SVAR value is a (given) best estimate of the original un-ordered population variance. The variance of the output value is formed assuming that the original dataset was normal in distribution, and is now fairly represented by the ordered statistics variances-covariances supplied in packed form in COVAR. The values not rejected are indicated by setting the flags in array used.

Invocation:
CALL CCG_TMN2x( IGNORE, ORDDAT, ORDVAR, EL, USED, COVAR, TMEAN, TVAR, STATUS )

Arguments:

IGNORE = INTEGER (Given)
The number of values to ignore from the upper and lower orders.
EL = INTEGER (Given)
The number of entries in ORDDAT.
ORDDAT( EL ) = ? (Given)
The set of ordered data for which a trimmed mean is required.
SVAR = DOUBLE PRECISION (Given)
The variance of the unordered sample now ordered in ORDDAT.
USED( EL ) = LOGICAL (Returned)
Flags showing which values have not been rejected.
COVAR( $*$ ) = DOUBLE PRECISION (Given)
The packed variance-covariance matrix of the order statistics from a normal distribution of size EL.
TMEAN = DOUBLE PRECISION (Returned)
The trimmed mean.
TVAR = DOUBLE PRECISION (Returned)
A variance estimate of the trimmed mean.
STATUS = INTEGER (Given and Returned)
The global status.

Notes:

Prior Requirements



next up previous 278
Next: CCG_TMN3x - Forms the n-trimmed mean of the given set of ordered data. This variant does not process variances
Up: Routine Descriptions
Previous: CCG_TM3x - Combines data lines using a trimmed mean

KAPLIBS -- Internal subroutines used within the KAPPA package.
Starlink User Note 238
D.S. Berry
Malcolm J. Currie
9th March 2009
E-mail:ussc@star.rl.ac.uk

Copyright © 2010 Science and Technology Facilities Council