140 if ( *in1 > threshold ) {
194 for (
i = 0;
i < length;
i++ ) {
222 UINT2 blockSize, nblocks2;
244 blockSize = *blocksRNG;
254 nblocks2 = floor( blockSize / 2.0 );
256 medians =
psd->data + nblocks2;
261 mediansV.
length = length - blockSize + 1;
262 mediansV.
data =
psd->data + nblocks2;
268 &mediansV, &inputV, rngmedPar ),
status );
271 for (
j = 0;
j < nblocks2 ; ++
j ) {
272 psd->data[
j] = medians[0];
274 for (
j = nblocks2 + length - blockSize + 1;
j < length ; ++
j ) {
275 psd->data[
j] = medians[length - blockSize];
343 if ( *peri > threshold * ( *
psd ) ) {
#define XLAL_CHECK_LAL(sp, assertion,...)
#define TRY(func, statusptr)
#define ATTATCHSTATUSPTR(statusptr)
#define ASSERT(assertion, statusptr, code, mesg)
#define DETATCHSTATUSPTR(statusptr)
#define INITSTATUS(statusptr)
#define RETURN(statusptr)
void LALSelectPeakColorNoise(LALStatus *status, UCHARPeakGram *pg, REAL8 *thr, REAL8PeriodoPSD *in)
Function for selecting peaks in colored noise – obsolete – use LAL functions in NormalizeSFTRngMed....
void LALPeriodo2PSDrng(LALStatus *status, REAL8Periodogram1 *psd, REAL8Periodogram1 *peri, INT4 *blocksRNG)
Wrapper for LALRunningMedian code – obsolete – use LAL functions in NormalizeSFTRngMed....
void LALUCHAR2HOUGHPeak(LALStatus *status, HOUGHPeakGram *pgOut, UCHARPeakGram *pgIn)
Compress explicit peak gram.
void SFTtoUCHARPeakGram(LALStatus *status, UCHARPeakGram *pg, const SFTtype *sft, REAL8 thr)
Convert a normalized sft into a peakgram by selecting bins in which power exceeds a threshold.
void LALComputeMeanPower(LALStatus *status, REAL8 *mean, REAL8Periodogram1 *peri)
to compute mean power from a periodogram – obsolete – use LAL functions in NormalizeSFTRngMed....
void LALSelectPeakWhiteNoise(LALStatus *status, UCHARPeakGram *pg, REAL8 *thr, REAL8Periodogram1 *peri)
select peakgram in white noise – obsolete – use LAL functions in NormalizeSFTRngMed....
Header file for PeakSelect.c.
#define PEAKSELECTH_MSGENULL
#define PEAKSELECTH_ENULL
#define PEAKSELECTH_MSGEVAL
int XLALSFTtoPeriodogram(REAL8FrequencySeries *periodo, const COMPLEX8FrequencySeries *SFT)
Calculate the "periodogram" of an SFT, ie the modulus-squares of the SFT-data.
This structure stores the `‘peak-gram’'.
REAL8 deltaF
Frequency resolution: df=1/TCOH
UINT4 length
Number of peaks present in the peak-gram.
UINT8 fBinFin
Frequency index of the last element of the spectrum covered by this peak-gram.
UINT8 fBinIni
Frequency index of the first element of the spectrum covered by this peak-gram; it can be seen as an ...
INT4 * peak
The peak indices relative to fBinIni, i.e., the zero peak corresponds to fBinIni.
structure containing psd and periodogram of a sft – obsolete – use LAL functions
REAL8Periodogram1 periodogram
Explicit peakgram structure – 1 if power in bin is above threshold and 0 if below.
UCHAR * data
pointer to the data {0,1}
LIGOTimeGPS epoch
epoch of first series sample
REAL8 timeBase
coherent time baseline used to construct peakgram
INT4 nPeaks
number of peaks selected in data
INT4 length
number of elements in data
INT4 fminBinIndex
first frequency bin of peakgram