next up previous 278
Next: CCG_TRM2x - Forms the trimmed mean of the given set of ordered data, returning flags showing which values are used
Up: Routine Descriptions
Previous: CCG_TMN2x - Forms the n-trimmed mean of the given set of ordered data


CCG_TMN3x - Forms the n-trimmed mean of the given set of ordered data. This variant does not process variances

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 values not rejected are indicated by setting the flags in array used.

Invocation:
CALL CCG1_TMN3x( IGNORE, EL, ORDDAT, USED, TMEAN, STATUS )

Arguments:

EL = INTEGER (Given)
The number of entries in ORDDAT.
IGNORE = INTEGER (Given)
The number of values to ignore from the upper and lower orders.
ORDDAT( EL ) = ? (Given)
The set of ordered data for which a trimmed mean is required.
USED( EL ) = LOGICAL (Returned)
Flags showing which values have not been rejected.
TMEAN = DOUBLE PRECISION (Returned)
The trimmed mean.
STATUS = INTEGER (Given and Returned)
The global status.

Notes:



next up previous 278
Next: CCG_TRM2x - Forms the trimmed mean of the given set of ordered data, returning flags showing which values are used
Up: Routine Descriptions
Previous: CCG_TMN2x - Forms the n-trimmed mean of the given set of ordered data

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