CCG_TRM3x

Forms 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.