In file No file:

double ssCoherence (const dCmplx x1[], const dCmplx x2[], int navg)

Calculates the coherence between two swept sine channels

Documentation

Function to calculate the coherence between two sets of data returned by sineAnalyze. The coherence is a number ranging from 0 to 1, indicating the fraction of the power (at the sine detection frequency) in the response channel is caused by the stimulus channel. This function would be called for each frequency point in a swept sine response.

Returns:
the coherence, as a double
Parameters:
x1 - array of sineVals returned by sineAnalyze (stimulus, eg)
x2 - array of sineVals returned by sineAnalyze (response, eg)
int - number of averages (points in x1 & x2)
Author:
PF, Jan 1999

alphabetic index hierarchy of classes


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


generated by doc++