In file No file:

int coherenceCP (int data_length, const float* pxxdata, const float* pyydata, const float* pxydata, float* result)

Coherence function

Documentation

Coherence function. This function computes the coherence from the power spectra of two time series and the cross power spectrum between them. The result array (data_length/2)*sizeof(float) for real (unheterodyned) input data and data_length*sizeof(float) for complex (heterodyned) data.

Returns:
s 0 if successful, -1 if error
Parameters:
data_length - the number of frequency bins in the data set
pxxdata - the power spectrum of the first (x) data set. An array of datalength floats for datalength bins of power spectrum data for the first (x) data set.
pyydata - same as pxxdata for the second (y) data set.
pxydata - the cross power spectrum between the two data sets. An array of datalength pairs of floats for datalength complex cross spectrum data points.
result - the coherence result
Author:
Edward Daw, July 1999

alphabetic index hierarchy of classes


Please send questions and comments to zweizig_j@ligo.caltech.edu


generated by doc++