In file No file:

int fftToPs (int data_length, int data_type, const float* input, float* output)

Power spectrum function

Documentation

Power spectrum function. This function converts an fft of either real timeseries data or complex timeseries data into a power spectrum. It is assumed that the input data has been generated by psGen using the output format option OUTPUT_GDSFORMAT. The output array should be allocated (data_length/2)*sizeof(float) if the input data was real or data_length*sizeof(float) if the input data was complex. The resulting power spectrum is in amplitude rms per rtHz.

Returns:
s 0 if successful, -1 if error.
Parameters:
data_length - the number of complex bins in the fourier series
data_type - either DATA_REAL or DATA_COMPLEX. Refers to the data type of the original timeseries.
input - a pointer to the input data
output - a pointer to the output data
Author:
Edward Daw, June 1999

alphabetic index hierarchy of classes


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


generated by doc++