Next: KPG1_MEDUx - Derives the unweighted median of a vector
Up: Routine Descriptions
Previous: KPG1_MDETx - Computes the determinant of a matrix
KPG1_MEANx
- Finds the mean of the good data values in an array
- Description:
- Finds the mean of the good data values in an array.
- Invocation:
- CALL KPG1_MEANx( N, DATA, MEAN, STATUS )
- Arguments:
-
-
N = INTEGER (Given)
-
Number of elements in the array.
-
DATA( N ) = ? (Given)
-
The data array.
-
MEAN = ? (Returned)
-
The mean value. Set to VAL__BAD
T
if no good data are found.
-
STATUS = INTEGER (Given)
-
The global status.
- Notes:
- There is a routine for each of the standard numeric types.
Replace "x" in the routine name by D, R, I, W, UW, B or UB as
appropriate. The array and mean arguments supplied to the
routine must have the data type specified.
- The summation is carried out in double precision.
Next: KPG1_MEDUx - Derives the unweighted median of a vector
Up: Routine Descriptions
Previous: KPG1_MDETx - Computes the determinant of a matrix
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