Estimates of the gain
and phase
of the dependency of series
on series
at frequency
are given by
The quantities used in these definitions are obtained as in
Section 3 in
g13cef.
Confidence limits are returned for both gain and phase, but should again be taken as very approximate when the coherency
, as calculated by
g13cef, is not significant. These are based on the assumption that both
and
are Normal with variance
Although the estimate of
is always given in the range
, no attempt is made to restrict its confidence limits to this range.
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
x04aaf).
Note: if more than one failure of types
,
,
and
occurs then the failure type which occurred at lowest frequency is returned in
ifail. However the actions indicated above are also carried out for failures at higher frequencies.
All computations are very stable and yield good accuracy.
Background information to multithreading can be found in the
Multithreading documentation.
The time taken by
g13cff is approximately proportional to
ng.
This example reads the set of univariate spectrum statistics, the two univariate spectra and the cross spectrum at a frequency division of for a pair of time series. It calls g13cff to calculate the gain and the phase and their bounds and prints the results.