LAL  7.5.0.1-ec27e42
AverageSpectrum.c File Reference

Prototypes

static COMPLEX16 cabs2 (COMPLEX16 z)
 
int XLALREAL4ModifiedPeriodogram (REAL4FrequencySeries *periodogram, const REAL4TimeSeries *tseries, const REAL4Window *window, const REAL4FFTPlan *plan)
 Compute a "modified periodogram," i.e., the power spectrum of a windowed time series. More...
 
int XLALREAL8ModifiedPeriodogram (REAL8FrequencySeries *periodogram, const REAL8TimeSeries *tseries, const REAL8Window *window, const REAL8FFTPlan *plan)
 Compute a "modified periodogram," i.e., the power spectrum of a windowed time series. More...
 
int XLALREAL4AverageSpectrumWelch (REAL4FrequencySeries *spectrum, const REAL4TimeSeries *tseries, UINT4 seglen, UINT4 stride, const REAL4Window *window, const REAL4FFTPlan *plan)
 Use Welch's method to compute the average power spectrum of a time series. More...
 
int XLALREAL8AverageSpectrumWelch (REAL8FrequencySeries *spectrum, const REAL8TimeSeries *tseries, UINT4 seglen, UINT4 stride, const REAL8Window *window, const REAL8FFTPlan *plan)
 Use Welch's method to compute the average power spectrum of a time series. More...
 
REAL8 XLALMedianBias (UINT4 nn)
 compute the median bias * See arXiv: gr-qc/0509116 appendix B for details More...
 
static void median_cleanup_REAL4 (REAL4FrequencySeries *work, UINT4 n)
 
static void median_cleanup_REAL8 (REAL8FrequencySeries *work, UINT4 n)
 
static int compare_REAL4 (const void *p1, const void *p2)
 
static int compare_REAL8 (const void *p1, const void *p2)
 
int XLALREAL4AverageSpectrumMedian (REAL4FrequencySeries *spectrum, const REAL4TimeSeries *tseries, UINT4 seglen, UINT4 stride, const REAL4Window *window, const REAL4FFTPlan *plan)
 Median Method: use median average rather than mean. More...
 
int XLALREAL8AverageSpectrumMedian (REAL8FrequencySeries *spectrum, const REAL8TimeSeries *tseries, UINT4 seglen, UINT4 stride, const REAL8Window *window, const REAL8FFTPlan *plan)
 Median Method: use median average rather than mean. More...
 
static void median_mean_cleanup_REAL4 (REAL4FrequencySeries *even, REAL4FrequencySeries *odd, UINT4 n)
 
static void median_mean_cleanup_REAL8 (REAL8FrequencySeries *even, REAL8FrequencySeries *odd, UINT4 n)
 
int XLALREAL4AverageSpectrumMedianMean (REAL4FrequencySeries *spectrum, const REAL4TimeSeries *tseries, UINT4 seglen, UINT4 stride, const REAL4Window *window, const REAL4FFTPlan *plan)
 Median-Mean Method: divide overlapping segments into "even" and "odd" segments; compute the bin-by-bin median of the "even" segments and the "odd" segments, and then take the bin-by-bin average of these two median averages. More...
 
int XLALREAL8AverageSpectrumMedianMean (REAL8FrequencySeries *spectrum, const REAL8TimeSeries *tseries, UINT4 seglen, UINT4 stride, const REAL8Window *window, const REAL8FFTPlan *plan)
 Median-Mean Method: divide overlapping segments into "even" and "odd" segments; compute the bin-by-bin median of the "even" segments and the "odd" segments, and then take the bin-by-bin average of these two median averages. More...
 
int XLALREAL4SpectrumInvertTruncate (REAL4FrequencySeries *spectrum, REAL4 lowfreq, UINT4 seglen, UINT4 trunclen, REAL4FFTPlan *fwdplan, REAL4FFTPlan *revplan)
 UNDOCUMENTED. More...
 
int XLALREAL8SpectrumInvertTruncate (REAL8FrequencySeries *spectrum, REAL8 lowfreq, UINT4 seglen, UINT4 trunclen, REAL8FFTPlan *fwdplan, REAL8FFTPlan *revplan)
 UNDOCUMENTED. More...
 
COMPLEX8FrequencySeriesXLALWhitenCOMPLEX8FrequencySeries (COMPLEX8FrequencySeries *fseries, const REAL4FrequencySeries *psd)
 Normalize a COMPLEX8 frequency series to a REAL4 average PSD. More...
 
COMPLEX16FrequencySeriesXLALWhitenCOMPLEX16FrequencySeries (COMPLEX16FrequencySeries *fseries, const REAL8FrequencySeries *psd)
 Double-precision version of XLALWhitenCOMPLEX8FrequencySeries(). More...
 
REAL8 XLALLogMedianBiasGeometric (UINT4 nn)
 Geometric mean median bias factor. More...
 
LALPSDRegressorXLALPSDRegressorNew (unsigned average_samples, unsigned median_samples)
 Allocate and initialize a LALPSDRegressor object. More...
 
void XLALPSDRegressorReset (LALPSDRegressor *r)
 Reset a LALPSDRegressor object to the newly-allocated state. More...
 
void XLALPSDRegressorFree (LALPSDRegressor *r)
 Free all memory associated with a LALPSDRegressor object. More...
 
int XLALPSDRegressorSetAverageSamples (LALPSDRegressor *r, unsigned average_samples)
 Change the average_samples of a LALPSDRegressor object. More...
 
unsigned XLALPSDRegressorGetAverageSamples (const LALPSDRegressor *r)
 Return the average_samples of a LALPSDRegressor object. More...
 
unsigned XLALPSDRegressorGetNSamples (const LALPSDRegressor *r)
 Return the number of frequency series samples over which the running average has been computed. More...
 
int XLALPSDRegressorSetMedianSamples (LALPSDRegressor *r, unsigned median_samples)
 Change the median_samples of a LALPSDRegressor object. More...
 
unsigned XLALPSDRegressorGetMedianSamples (const LALPSDRegressor *r)
 Return the median_samples of a LALPSDRegressor object. More...
 
int XLALPSDRegressorAdd (LALPSDRegressor *r, const COMPLEX16FrequencySeries *sample)
 Update a LALPSDRegressor object from a frequency series object. More...
 
REAL8FrequencySeriesXLALPSDRegressorGetPSD (const LALPSDRegressor *r)
 Retrieve a copy of the current PSD estimate. More...
 
int XLALPSDRegressorSetPSD (LALPSDRegressor *r, const REAL8FrequencySeries *psd, unsigned weight)
 Initialize the running average of a LALPSDRegressor to the given PSD, and record it has having counted as weight samples of the running history. More...
 
REAL8SequenceXLALREAL8WindowTwoPointSpectralCorrelation (const REAL8Window *window, const REAL8FFTPlan *plan)
 Compute the two-point spectral correlation function for a whitened frequency series from the window applied to the original time series. More...
 

Go to the source code of this file.

Function Documentation

◆ cabs2()

static COMPLEX16 cabs2 ( COMPLEX16  z)
static

Definition at line 34 of file AverageSpectrum.c.

◆ median_cleanup_REAL4()

static void median_cleanup_REAL4 ( REAL4FrequencySeries work,
UINT4  n 
)
static

Definition at line 398 of file AverageSpectrum.c.

◆ median_cleanup_REAL8()

static void median_cleanup_REAL8 ( REAL8FrequencySeries work,
UINT4  n 
)
static

Definition at line 409 of file AverageSpectrum.c.

◆ compare_REAL4()

static int compare_REAL4 ( const void *  p1,
const void *  p2 
)
static

Definition at line 422 of file AverageSpectrum.c.

◆ compare_REAL8()

static int compare_REAL8 ( const void *  p1,
const void *  p2 
)
static

Definition at line 428 of file AverageSpectrum.c.

◆ median_mean_cleanup_REAL4()

static void median_mean_cleanup_REAL4 ( REAL4FrequencySeries even,
REAL4FrequencySeries odd,
UINT4  n 
)
static

Definition at line 701 of file AverageSpectrum.c.

◆ median_mean_cleanup_REAL8()

static void median_mean_cleanup_REAL8 ( REAL8FrequencySeries even,
REAL8FrequencySeries odd,
UINT4  n 
)
static

Definition at line 717 of file AverageSpectrum.c.