next up previous 278
Next: CCG_RMS1x - Combines data lines using the root mean square
Up: Routine Descriptions
Previous: CCG_MX3x - Combines data lines using the maximum value


CCG_ORVAR - Returns the variances and covariances of the order statistics from n to 1, assuming an initially normal distribution

Description:
The routine returns the variances and covariances of the order statistics, assuming an initial (pre-ordered) normal distribution of mean 0 and standard deviation 1. The routine returns all variance/covariances in an array with the terms vectorised - that is following on after each row. This uses the symmetric nature of the matrix to compress the data storage, but remember to double the covariance components if summing in quadrature. The variances
  • covariances are returned for all statistics from n to 1. The special case of n = 1 returns the variance of 2/pi (median).


Invocation:
CALL CCG_ORVAR( EL, NBIG, PP, VEC, MATRIX, STATUS )

Arguments:

EL = INTEGER (Given)
Number of members in ordered set.
NBIG = INTEGER (Given)
Maximum number of entries in covariance array row. equal to EL$*$(EL$+$1)/2).
PP( EL ) = DOUBLE PRECISION (Given)
Workspace for storing expected values of order statistics.
VEC( NBIG, EL ) = DOUBLE PRECISION (Returned)
The upper triangles of the nset by nset variance-covariance matrix packed by columns. Each triangle is packed into a single row. For each row element Vij is stored in VEC(i$+$j$*$(j-1)/2), for 1 $<$= i $<$= j $<$= nset.
MATRIX( EL, EL ) = DOUBLE PRECISION (Returned)
Work space.
STATUS = INTEGER (Given and Returned)
The global status.

Notes:



next up previous 278
Next: CCG_RMS1x - Combines data lines using the root mean square
Up: Routine Descriptions
Previous: CCG_MX3x - Combines data lines using the maximum value

KAPLIBS -- Internal subroutines used within the KAPPA package.
Starlink User Note 238
D.S. Berry
Malcolm J. Currie
2011 April 12
E-mail:starlink@jiscmail.ac.uk

Copyright © 2013 Science and Technology Facilities Council