WFDB Applications Guide - PhysioNet
WFDB Applications Guide - PhysioNet
WFDB Applications Guide - PhysioNet
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
COHERENCE(1) <strong>WFDB</strong> <strong>Applications</strong> <strong>Guide</strong> COHERENCE(1)<br />
NAME<br />
coherence − estimate coherence and cross-spectrum of two time series<br />
SYNOPSIS<br />
coherence -i file [ options ... ]<br />
DESCRIPTION<br />
coherence estimates the coherence and cross-spectrum of a pair of real-valued time series; as a byproduct<br />
of its calculation of coherence, it also estimates the autospectra of each of its input time series. The file<br />
argument specifies the name of a text file containing the samples of the series in two columns. The standard<br />
output contains five columns of numbers (optionally preceded by column headings), which are frequency<br />
(Hz), coherence, cross-spectral power (dB), autospectral power (dB) of the first time series, and<br />
autospectral power (dB) of the second time series.<br />
SEE ALSO<br />
fft(1)<br />
This program is based on a Fortran program by C.R. Arnold, G.C. Carter, and J.F. Ferrie, as described in ‘A<br />
coherence and cross-spectral estimation program’, by G.C. Carter and J.F. Ferrie, in Programs for Digital<br />
Signal Processing, edited by the Digital Signal Processing Committee of the IEEE ASSP Society (New<br />
York: IEEE Press, 1979). The functions fft842() and its auxiliary functions r2tx(), r4tx(), and r8tx(), are<br />
based on Fortran subroutines by G.D. Bergland and M.T. Dolan, as described by them in ‘Fast Fourier<br />
transform algorithms’, also included in Programs for Digital Signal Processing.<br />
Options are:<br />
-f frequency<br />
Specify the sampling frequency inHz(default: 250).<br />
-n n Process the input in overlapping chunks of n samples (default: 1024). For best results, n should be<br />
apower of two.<br />
-v Print column headings.<br />
-x sx sy Specify multiplicative scale factors for the two time series (defaults: 1). Areasonable choice is to<br />
use the reciprocals of the standard deviations of the respective time series if these differ significantly.<br />
Note that the scale factors generally have little or no visible effect on the coherence or on the shape of the<br />
spectra. The choice of chunk size (using the -n option) will have a significant effect; some experimentation<br />
may be needed to determine an appropriate chunk size in each case.<br />
AUTHOR<br />
George B. Moody (george@mit.edu)<br />
SOURCE<br />
http://www.physionet.org/physiotools/wfdb/psd/coherence.c<br />
12 24 July 2002 <strong>WFDB</strong> 10.2.7