Next: CCG_UM1x - Combines data lines using an unweighted mean
Up: Routine Descriptions
Previous: CCG_TRM2x - Forms the trimmed mean of the given set of ordered data, returning flags showing which values are used
CCG_TRM3x
- To form the trimmed mean of the given set of ordered data,
returning flags showing which values are used. This variant does
not process variances
- Description:
- The routine forms the trimmed mean of the given dataset. The
alpha (as a fraction) upper and lower ordered values are removed
from consideration. Then the remaining values are added and
averaged. The elements of the input array which actually
contribute to the final value are flagged in the used array.
- Invocation:
- CALL CCG_TRM3x( ALPHA, EL, ORDDAT, USED, TMEAN, STATUS )
- Arguments:
-
-
ALPHA = REAL (Given)
-
The fraction of data to trim from upper and lower orders.
It must be greater than 0.0 and less than 0.5.
-
EL = INTEGER (Given)
-
The number of entries in ORDDAT.
-
ORDDAT( EL ) = ? (Given)
-
The set of ordered data for which a trimmed mean is required.
-
USED( EL ) = LOGICAL (Returned)
-
If the corresponding value in ORDDAT contributes to the final
value then this is set true.
-
TMEAN = DOUBLE PRECISION (Returned)
-
The trimmed mean.
-
STATUS = INTEGER (Given and Returned)
-
The global status.
Next: CCG_UM1x - Combines data lines using an unweighted mean
Up: Routine Descriptions
Previous: CCG_TRM2x - Forms the trimmed mean of the given set of ordered data, returning flags showing which values are used
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