Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALPulsar 7.1.1.1-ea7c608
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Header PulsarCrossCorr_v2.h

Detailed Description

Header-file for XLAL routines for v2 CW cross-correlation searches.

Author
John Whelan, Yuanhao Zhang, Shane Larson, Badri Krishnan
Date
2012, 2013, 2014

Prototypes

int XLALGetDopplerShiftedFrequencyInfo (REAL8Vector *shiftedFreqs, UINT4Vector *lowestBins, COMPLEX8Vector *expSignalPhases, REAL8VectorSequence *sincList, UINT4 numBins, PulsarDopplerParams *dopp, SFTIndexList *sftIndices, MultiSFTVector *inputSFTs, MultiSSBtimes *multiTimes, MultiUINT4Vector *badBins, REAL8 Tsft)
 Calculate the Doppler-shifted frequency associated with each SFT in a list. More...
 
int XLALCreateSFTIndexListFromMultiSFTVect (SFTIndexList **indexList, MultiSFTVector *sfts)
 Construct flat SFTIndexList out of a MultiSFTVector. More...
 
int XLALCreateSFTPairIndexList (SFTPairIndexList **pairIndexList, SFTIndexList *indexList, MultiSFTVector *sfts, REAL8 maxLag, BOOLEAN inclAutoCorr)
 Construct list of SFT pairs for inclusion in statistic. More...
 
int XLALCreateSFTPairIndexListAccurateResamp (SFTPairIndexList **pairIndexList, UINT4VectorSequence **sftPairForTshortPair, SFTIndexList *indexList, MultiResampSFTPairMultiIndexList *resampPairs, const MultiLIGOTimeGPSVector *restrict multiTimes, const MultiLIGOTimeGPSVector *restrict resampMultiTimes)
 Construct list of SFT pairs corresponding to a list of tShort pairs. More...
 
int XLALCreateSFTPairIndexListResamp (MultiResampSFTPairMultiIndexList **resampMultiPairIndexList, SFTPairIndexList **pairIndexList, SFTIndexList *indexList, MultiSFTVector *sfts, REAL8 maxLag, BOOLEAN inclAutoCorr, BOOLEAN inclSameDetector, REAL8 Tsft, REAL8 Tshort)
 Resampling-modified: construct list of SFT pairs for inclusion in statistic. More...
 
int XLALCreateSFTPairIndexListShortResamp (MultiResampSFTPairMultiIndexList **resampMultiPairIndexList, const REAL8 maxLag, const BOOLEAN inclAutoCorr, const BOOLEAN inclSameDetector, const REAL8 Tsft, const MultiLIGOTimeGPSVector *restrict multiTimes)
 With Tshort, and Resampling-modified: construct list of SFT pairs for inclusion in statistic. More...
 
int XLALTestResampPairIndexList (MultiResampSFTPairMultiIndexList *resampMultiPairIndexList)
 Check that the contents of a resampling multi-pair index list are sensible by inspection. More...
 
int XLALCalculateCrossCorrGammas (REAL8Vector **Gamma_ave, REAL8Vector **Gamma_circ, SFTPairIndexList *pairIndexList, SFTIndexList *indexList, MultiAMCoeffs *multiCoeffs)
 Construct vector of G_alpha amplitudes for each SFT pair. More...
 
int XLALCalculateCrossCorrGammasResamp (REAL8Vector **Gamma_ave, REAL8Vector **Gamma_circ, MultiResampSFTPairMultiIndexList *resampMultiPairIndexList, MultiAMCoeffs *multiCoeffs)
 test function for RESAMPLING More...
 
int XLALCalculateCrossCorrGammasResampShort (REAL8Vector **Gamma_ave, REAL8Vector **Gamma_circ, MultiResampSFTPairMultiIndexList *resampMultiPairIndexList, MultiAMCoeffs *multiCoeffs)
 test function for RESAMPLING with tShort More...
 
int XLALCombineCrossCorrGammas (REAL8Vector **resampGamma, REAL8Vector *Gamma, UINT4VectorSequence *sftPairForTshortPair, REAL8 Tsft, REAL8 Tshort)
 Combine G_alpha amplitudes for SFT pairs into amplitudes for Tshort pairs. More...
 
int XLALCalculatePulsarCrossCorrStatistic (REAL8 *ccStat, REAL8 *evSquared, REAL8Vector *curlyGAmp, COMPLEX8Vector *expSignalPhases, UINT4Vector *lowestBins, REAL8VectorSequence *sincList, SFTPairIndexList *sftPairs, SFTIndexList *sftIndices, MultiSFTVector *inputSFTs, MultiNoiseWeights *multiWeights, UINT4 numBins)
 Calculate multi-bin cross-correlation statistic. More...
 
int XLALCalculatePulsarCrossCorrStatisticResamp (REAL8Vector *restrict ccStatVector, REAL8Vector *restrict evSquaredVector, REAL8Vector *restrict numeEquivAve, REAL8Vector *restrict numeEquivCirc, const REAL8Vector *restrict resampCurlyGAmp, const MultiResampSFTPairMultiIndexList *restrict resampMultiPairs, const MultiNoiseWeights *restrict multiWeights, const PulsarDopplerParams *restrict binaryTemplateSpacings, const PulsarDopplerParams *restrict dopplerpos, const MultiCOMPLEX8TimeSeries *restrict multiTimeSeries_SRC_a, const MultiCOMPLEX8TimeSeries *restrict multiTimeSeries_SRC_b, ResampCrossCorrWorkspace *restrict ws, COMPLEX8 *restrict ws1KFaX_k, COMPLEX8 *restrict ws1KFbX_k, COMPLEX8 *restrict ws2LFaX_k, COMPLEX8 *restrict ws2LFbX_k)
 Calculate multi-bin cross-correlation statistic using resampling. More...
 
int XLALCalculateCrossCorrPhaseDerivatives (REAL8VectorSequence **phaseDerivs, const PulsarDopplerParams *dopplerPoint, const EphemerisData *edat, SFTIndexList *indexList, MultiSSBtimes *multiTimes, const DopplerCoordinateSystem *coordSys)
 calculate signal phase derivatives wrt Doppler coords, for each SFT More...
 
int XLALCalculateCrossCorrPhaseDerivativesShort (REAL8VectorSequence **resampPhaseDerivs, const PulsarDopplerParams *dopplerPoint, const EphemerisData *edat, SFTIndexList *indexList, MultiResampSFTPairMultiIndexList *resampMultiPairs, MultiSSBtimes *multiTimes, const DopplerCoordinateSystem *coordSys)
 (test function) MODIFIED for Tshort More...
 
int XLALCalculateCrossCorrPhaseMetric (gsl_matrix **g_ij, gsl_vector **eps_i, REAL8 *sumGammaSq, const REAL8VectorSequence *phaseDerivs, const SFTPairIndexList *pairIndexList, const REAL8Vector *Gamma_ave, const REAL8Vector *Gamma_circ, const DopplerCoordinateSystem *coordSys)
 calculate phase metric for CW cross-correlation search, as well as vector used for parameter offsets More...
 
int XLALCalculateCrossCorrPhaseMetricShort (gsl_matrix **g_ij, gsl_vector **eps_i, REAL8 *sumGammaSq, const REAL8VectorSequence *phaseDerivs, const MultiResampSFTPairMultiIndexList *resampMultiPairs, const REAL8Vector *Gamma_ave, const REAL8Vector *Gamma_circ, const DopplerCoordinateSystem *coordSys)
 (test function) Redesigning to use Tshort instead More...
 
int XLALCalculateLMXBCrossCorrDiagMetric (REAL8 *hSens, REAL8 *g_ff, REAL8 *g_aa, REAL8 *g_TT, REAL8 *g_pp, REAL8 *weightedMuTAve, PulsarDopplerParams DopplerParams, REAL8Vector *G_alpha, SFTPairIndexList *pairIndexList, SFTIndexList *indexList, MultiSFTVector *sfts, MultiNoiseWeights *multiWeights)
 
int XLALCalculateLMXBCrossCorrDiagMetricShort (REAL8 *hSens, REAL8 *g_ff, REAL8 *g_aa, REAL8 *g_TT, REAL8 *g_pp, const PulsarDopplerParams DopplerParams, const REAL8Vector *restrict G_alpha, const MultiResampSFTPairMultiIndexList *restrict resampMultiPairIndexList, const MultiLIGOTimeGPSVector *restrict timestamps, const MultiNoiseWeights *restrict multiWeights)
 MODIFIED for Tshort: calculate metric diagonal components, also include the estimation of sensitivity E[rho]/(h_0)^2. More...
 
LIGOTimeGPSVectorXLALExtractTimestampsFromSFTsShort (REAL8TimeSeries **sciFlag, const SFTVector *sfts, REAL8 tShort, UINT4 numShortPerDet)
 ‍** (possible future function) Wrapper for Bessel Orbital Space stepper in the manner of V. Dergachev's loosely-coherent search *‍/ More...
 
LIGOTimeGPSVectorXLALGenerateTshortTimestamps (const REAL8 tShort, const UINT4 numShortPerDet, const LIGOTimeGPS epoch)
 Generate timestamps for one detector with tShort. More...
 
LIGOTimeGPSVectorXLALModifyTimestampsFromSFTsShort (REAL8TimeSeries **sciFlag, const LIGOTimeGPSVector *restrict Times, const REAL8 tShort, const UINT4 numShortPerDet)
 Modify timestamps from one detector with tShort. More...
 
MultiLIGOTimeGPSVectorXLALGenerateMultiTshortTimestamps (const MultiLIGOTimeGPSVector *restrict multiTimes, const REAL8 tShort, const UINT4 numShortPerDet, const BOOLEAN alignTShorts)
 Given a multi-SFT vector, return a MultiLIGOTimeGPSVector holding the modified SFT timestamps (production function using tShort) More...
 
MultiLIGOTimeGPSVectorXLALModifyMultiTimestampsFromSFTs (MultiREAL8TimeSeries **scienceFlagVect, const MultiLIGOTimeGPSVector *restrict multiTimes, const REAL8 tShort, const UINT4 numShortPerDet)
 Given a multi-SFT vector, return a MultiLIGOTimeGPSVector holding the modified SFT timestamps (production function using tShort) More...
 
MultiLIGOTimeGPSVectorXLALExtractMultiTimestampsFromSFTsShort (MultiREAL8TimeSeries **scienceFlagVect, const MultiSFTVector *multiSFTs, REAL8 tShort, UINT4 numShortPerDet)
 Given a multi-SFT vector, return a MultiLIGOTimeGPSVector holding the SFT timestamps (test function using tShort) More...
 
int XLALFillDetectorTensorShort (DetectorState *detState, const LALDetector *detector)
 (test function) fill detector state with tShort, importing various slightly-modified LALPulsar functions for testing More...
 
DetectorStateSeriesXLALGetDetectorStatesShort (const LIGOTimeGPSVector *timestamps, const LALDetector *detector, const EphemerisData *edat, REAL8 tOffset, REAL8 tShort, UINT4 numShortPerDet)
 (test function) get detector states for tShort More...
 
MultiDetectorStateSeriesXLALGetMultiDetectorStatesShort (const MultiLIGOTimeGPSVector *multiTS, const MultiLALDetector *multiIFO, const EphemerisData *edat, REAL8 tOffset, REAL8 tShort, UINT4 numShortPerDet)
 (test function) get multi detector states for tShort More...
 
int XLALModifyAMCoeffsWeights (REAL8Vector **resampMultiWeightsX, const MultiNoiseWeights *restrict multiWeights, const REAL8 tShort, const REAL8 tSFTOld, const UINT4 numShortPerDet, const MultiLIGOTimeGPSVector *restrict multiTimes, const UINT4 maxNumStepsOldIfGapless, const UINT4 X)
 Modify amplitude weight coefficients for tShort. More...
 
MultiNoiseWeightsXLALModifyMultiWeights (const MultiNoiseWeights *restrict multiWeights, const REAL8 tShort, const REAL8 tSFTOld, const UINT4 numShortPerDet, const MultiLIGOTimeGPSVector *restrict multiTimes)
 Modify multiple detectors' amplitude weight coefficients for tShort. More...
 
int XLALModifyMultiAMCoeffsWeights (MultiNoiseWeights **multiWeights, const REAL8 tShort, const REAL8 tSFTOld, const UINT4 numShortPerDet, const MultiLIGOTimeGPSVector *restrict multiTimes)
 Modify multiple detectors' amplitude weight coefficients for tShort. More...
 
int XLALWeightMultiAMCoeffsShort (MultiAMCoeffs *multiAMcoef, const MultiNoiseWeights *multiWeights, REAL8 tShort, REAL8 tSFTOld, UINT4 numShortPerDet, MultiLIGOTimeGPSVector *multiTimes)
 (test function) used for weighting multi amplitude modulation coefficients More...
 
AMCoeffsXLALComputeAMCoeffsShort (const DetectorStateSeries *DetectorStates, SkyPosition skypos)
 (test function) used for computing amplitude modulation weights More...
 
MultiAMCoeffsXLALComputeMultiAMCoeffsShort (const MultiDetectorStateSeries *multiDetStates, const MultiNoiseWeights *multiWeights, SkyPosition skypos, REAL8 tShort, REAL8 tSFTOld, UINT4 numShortPerDet, MultiLIGOTimeGPSVector *multiTimes)
 (test function) used for computing multi amplitude modulation weights More...
 
UINT4 XLALCrossCorrNumShortPerDetector (const REAL8 resampTshort, const INT4 startTime, const INT4 endTime)
 Compute the number of tShort segments per detector. More...
 
REAL8TimeSeriesXLALCrossCorrGapFinderResamp (LIGOTimeGPSVector *restrict timestamps, const LIGOTimeGPSVector *restrict Times)
 Find gaps in the data given the SFTs. More...
 
REAL8TimeSeriesXLALCrossCorrGapFinderResampAlt (LIGOTimeGPSVector *restrict timestamps, const SFTVector *restrict sfts)
 (test function) find gaps in the data given the SFTs More...
 
int XLALEquipCrossCorrPairsWithScienceFlags (MultiResampSFTPairMultiIndexList *resampMultiPairs, MultiREAL8TimeSeries *scienceFlagVect)
 Demarcate pairs with flags about whether data exists in zero-padded timeseries. More...
 
int XLALCreateCrossCorrWorkspace (ResampCrossCorrWorkspace **wsOut, COMPLEX8 **ws1KFaX_kOut, COMPLEX8 **ws1KFbX_kOut, COMPLEX8 **ws2LFaX_kOut, COMPLEX8 **ws2LFbX_kOut, MultiCOMPLEX8TimeSeries **multiTimeSeries_SRC_aOut, MultiCOMPLEX8TimeSeries **multiTimeSeries_SRC_bOut, const PulsarDopplerParams binaryTemplateSpacings, FstatInput *resampFstatInput, const UINT4 numFreqBins, const REAL8 tCoh, const BOOLEAN treatWarningsAsErrors)
 ‍** (possible future function) does not work – would adjust timestamps of an SFT vector *‍/ More...
 
void XLALDestroySFTIndexList (SFTIndexList *sftIndices)
 Destroy a SFTIndexList structure. More...
 
void XLALDestroySFTPairIndexList (SFTPairIndexList *sftPairs)
 Destroy a SFTPairIndexList structure. More...
 
void XLALDestroyResampSFTIndexList (ResampSFTIndexList *sftResampList)
 
void XLALDestroyResampSFTMultiIndexList (ResampSFTMultiIndexList *sftResampMultiList)
 
void XLALDestroyResampSFTPairMultiIndexList (ResampSFTPairMultiIndexList *sftResampPairMultiList)
 
void XLALDestroyMultiResampSFTPairMultiIndexList (MultiResampSFTPairMultiIndexList *sftMultiPairsResamp)
 
void XLALDestroyMultiMatchList (MultiResampSFTMultiCountList *localMultiListOfLmatchingGivenMultiK)
 
void XLALDestroyResampCrossCorrWorkspace (void *workspace)
 
static int XLALApplyCrossCorrFreqShiftResamp (COMPLEX8 *restrict xOut, const COMPLEX8TimeSeries *restrict xIn, const PulsarDopplerParams *restrict doppler, const REAL8 freqShift, const UINT4 indexStartResamp, const UINT4 indexEndResamp, const UINT4 numSamplesIn, const UINT4 insertPoint)
 Imported and modified from ComputeFstat_Resamp.c. More...
 
static int XLALComputeFaFb_CrossCorrResamp (ResampCrossCorrWorkspace *restrict ws, COMPLEX8 *restrict wsFaX_k, COMPLEX8 *restrict wsFbX_k, const MultiResampSFTPairMultiIndexList *restrict resampMultiPairs, const MultiCOMPLEX8TimeSeries *restrict multiTimeSeries_SRC_a, const MultiCOMPLEX8TimeSeries *restrict multiTimeSeries_SRC_b, const PulsarDopplerParams *restrict dopplerpos, const PulsarDopplerParams *restrict binaryTemplateSpacings, const REAL8 SRCsampPerTcoh, const UINT4 detX, const UINT4 sftK, const UINT4 detY, const BOOLEAN isL)
 Compute the equivalent of Fa and Fb for CrossCorr's rho statistic. More...
 
int XLALCreateSFTPairIndexListAccurateResamp (SFTPairIndexList **pairIndexList, UINT4VectorSequence **sftPairForResampPair, SFTIndexList *indexList, MultiResampSFTPairMultiIndexList *resampPairs, const MultiLIGOTimeGPSVector *_LAL_RESTRICT_ multiTimes, const MultiLIGOTimeGPSVector *_LAL_RESTRICT_ resampMultiTimes)
 
int XLALCreateSFTPairIndexListShortResamp (MultiResampSFTPairMultiIndexList **resampPairIndexList, const REAL8 maxLag, const BOOLEAN inclAutoCorr, const BOOLEAN inclSameDetector, const REAL8 Tsft, const MultiLIGOTimeGPSVector *_LAL_RESTRICT_ multiTimes)
 
int XLALCalculatePulsarCrossCorrStatisticResamp (REAL8Vector *_LAL_RESTRICT_ ccStatVector, REAL8Vector *_LAL_RESTRICT_ evSquaredVector, REAL8Vector *_LAL_RESTRICT_ numeEquivAve, REAL8Vector *_LAL_RESTRICT_ numeEquivCirc, const REAL8Vector *_LAL_RESTRICT_ resampCurlyGAmp, const MultiResampSFTPairMultiIndexList *_LAL_RESTRICT_ resampPairs, const MultiNoiseWeights *_LAL_RESTRICT_ multiWeights, const PulsarDopplerParams *_LAL_RESTRICT_ binaryTemplateSpacings, const PulsarDopplerParams *_LAL_RESTRICT_ dopplerpos, const MultiCOMPLEX8TimeSeries *_LAL_RESTRICT_ multiTimeSeries_SRC_a, const MultiCOMPLEX8TimeSeries *_LAL_RESTRICT_ multiTimeSeries_SRC_b, ResampCrossCorrWorkspace *_LAL_RESTRICT_ ws, COMPLEX8 *_LAL_RESTRICT_ ws1KFaX_k, COMPLEX8 *_LAL_RESTRICT_ ws1KFbX_k, COMPLEX8 *_LAL_RESTRICT_ ws2LFaX_k, COMPLEX8 *_LAL_RESTRICT_ ws2LFbX_k)
 
int XLALCalculateLMXBCrossCorrDiagMetricShort (REAL8 *hSens, REAL8 *g_ff, REAL8 *g_aa, REAL8 *g_TT, REAL8 *g_pp, const PulsarDopplerParams DopplerParams, const REAL8Vector *_LAL_RESTRICT_ G_alpha, const MultiResampSFTPairMultiIndexList *_LAL_RESTRICT_ resampMultiPairIndexList, const MultiLIGOTimeGPSVector *_LAL_RESTRICT_ timestamps, const MultiNoiseWeights *_LAL_RESTRICT_ multiWeights)
 
LIGOTimeGPSVectorXLALModifyTimestampsFromSFTsShort (REAL8TimeSeries **sciFlag, const LIGOTimeGPSVector *_LAL_RESTRICT_ Times, const REAL8 tShort, const UINT4 numShortPerDet)
 
MultiLIGOTimeGPSVectorXLALGenerateMultiTshortTimestamps (const MultiLIGOTimeGPSVector *_LAL_RESTRICT_ multiTimes, const REAL8 tShort, const UINT4 numShortPerDet, const BOOLEAN alignTShorts)
 
MultiLIGOTimeGPSVectorXLALModifyMultiTimestampsFromSFTs (MultiREAL8TimeSeries **scienceFlagVect, const MultiLIGOTimeGPSVector *_LAL_RESTRICT_ multiTimes, const REAL8 tShort, const UINT4 numShortPerDet)
 
int XLALModifyAMCoeffsWeights (REAL8Vector **resampMultiWeightsX, const MultiNoiseWeights *_LAL_RESTRICT_ multiWeights, const REAL8 tShort, const REAL8 tSFTOld, const UINT4 numShortPerDet, const MultiLIGOTimeGPSVector *_LAL_RESTRICT_ multiTimes, const UINT4 maxNumStepsOldIfGapless, const UINT4 X)
 
MultiNoiseWeightsXLALModifyMultiWeights (const MultiNoiseWeights *_LAL_RESTRICT_ multiWeights, const REAL8 tShort, const REAL8 tSFTOld, const UINT4 numShortPerDet, const MultiLIGOTimeGPSVector *_LAL_RESTRICT_ multiTimes)
 
int XLALModifyMultiAMCoeffsWeights (MultiNoiseWeights **multiWeights, const REAL8 tShort, const REAL8 tSFTOld, const UINT4 numShortPerDet, const MultiLIGOTimeGPSVector *_LAL_RESTRICT_ multiTimes)
 
REAL8TimeSeriesXLALCrossCorrGapFinderResamp (LIGOTimeGPSVector *_LAL_RESTRICT_ timestamps, const LIGOTimeGPSVector *_LAL_RESTRICT_ Times)
 
REAL8TimeSeriesXLALCrossCorrGapFinderResampAlt (LIGOTimeGPSVector *_LAL_RESTRICT_ timestamps, const SFTVector *_LAL_RESTRICT_ sfts)
 

Data Structures

struct  SFTIndex
 Index to refer to an SFT given a set of SFTs from several different detectors. More...
 
struct  SFTIndexList
 List of SFT indices. More...
 
struct  SFTPairIndex
 Index to refer to a pair of SFTs. More...
 
struct  SFTPairIndexList
 List of SFT pair indices. More...
 
struct  SFTCount
 Resampling Counter of matching SFTs for a given detector Y_K_X matching SFT K_X. More...
 
struct  ResampSFTMultiCountList
 INNER List of SFT indices. More...
 
struct  ResampSFTMultiCountListDet
 MIDDLE List of SFT indices. More...
 
struct  MultiResampSFTMultiCountList
 OUTER List of SFT indices. More...
 
struct  ResampSFTIndex
 Resampling: Index to refer to fields of an SFT given a specific index L_Y_K_X. More...
 
struct  ResampSFTIndexList
 Resampling: List of SFT indices L for a given detector Y_K_X: indexing method is nominally original vectors but may be affected by gaps. More...
 
struct  ResampSFTMultiIndexList
 Resampling: Multi List of indices of SFT L_Y, for a given sft K_X
More...
 
struct  ResampSFTPairMultiIndexList
 Resampling Multi List of SFT pair indices (L_Y_K), for a given detector X. More...
 
struct  MultiResampSFTPairMultiIndexList
 Resampling Multi List of all paired SFTs L_Y_K_X, top level (multiple pairs, multiple detectors) More...
 
struct  CrossCorrTimings_t
 
struct  ResampCrossCorrTimingInfo
 
struct  ResampCrossCorrWorkspace
 
struct  MultiUINT4Vector
 A collection of UINT4Vectors – one for each IFO
More...
 

Function Documentation

◆ XLALGetDopplerShiftedFrequencyInfo()

int XLALGetDopplerShiftedFrequencyInfo ( REAL8Vector shiftedFreqs,
UINT4Vector lowestBins,
COMPLEX8Vector expSignalPhases,
REAL8VectorSequence sincList,
UINT4  numBins,
PulsarDopplerParams dopp,
SFTIndexList sftIndices,
MultiSFTVector inputSFTs,
MultiSSBtimes multiTimes,
MultiUINT4Vector badBins,
REAL8  Tsft 
)

Calculate the Doppler-shifted frequency associated with each SFT in a list.

Parameters
shiftedFreqsOutput list of shifted frequencies
lowestBinsOutput list of bin indices
expSignalPhasesOutput list of signal phases
sincListOutput list of sinc factors
numBinsNumber of frequency bins to use
doppDoppler parameters for signal
sftIndicesList of indices for SFTs
inputSFTsSFT data (needed for f0)
multiTimesSSB or Binary times
badBinsList of bin indices contaminated by known lines
TsftSFT duration

Definition at line 74 of file PulsarCrossCorr_v2.c.

◆ XLALCreateSFTIndexListFromMultiSFTVect()

int XLALCreateSFTIndexListFromMultiSFTVect ( SFTIndexList **  indexList,
MultiSFTVector sfts 
)

Construct flat SFTIndexList out of a MultiSFTVector.

Parameters
indexListOutput: flat list of indices to locate SFTs
sftsInput: set of per-detector SFT vectors

Definition at line 197 of file PulsarCrossCorr_v2.c.

◆ XLALCreateSFTPairIndexList()

int XLALCreateSFTPairIndexList ( SFTPairIndexList **  pairIndexList,
SFTIndexList indexList,
MultiSFTVector sfts,
REAL8  maxLag,
BOOLEAN  inclAutoCorr 
)

Construct list of SFT pairs for inclusion in statistic.

Parameters
pairIndexListOutput: list of SFT pairs
indexListInput: list of indices to locate SFTs
sftsInput: set of per-detector SFT vectors
maxLagMaximum allowed lag time
inclAutoCorrFlag indicating whether a "pair" of an SFT with itself is allowed

Definition at line 241 of file PulsarCrossCorr_v2.c.

◆ XLALCreateSFTPairIndexListAccurateResamp() [1/2]

int XLALCreateSFTPairIndexListAccurateResamp ( SFTPairIndexList **  pairIndexList,
UINT4VectorSequence **  sftPairForTshortPair,
SFTIndexList indexList,
MultiResampSFTPairMultiIndexList resampPairs,
const MultiLIGOTimeGPSVector *restrict  multiTimes,
const MultiLIGOTimeGPSVector *restrict  resampMultiTimes 
)

Construct list of SFT pairs corresponding to a list of tShort pairs.

Parameters
pairIndexListOutput: list of SFT pairs
sftPairForTshortPairOutput: list of SFT pairs corresponding to each Tshort pair
indexListInput: list of indices to locate SFTs
resampPairsInput: pairs of tShort segments for resampling
multiTimesInput: timestamps containing SFT times for each detector
resampMultiTimesInput: timestamps containing Tshort times for each detector

Definition at line 313 of file PulsarCrossCorr_v2.c.

◆ XLALCreateSFTPairIndexListResamp()

int XLALCreateSFTPairIndexListResamp ( MultiResampSFTPairMultiIndexList **  resampMultiPairIndexList,
SFTPairIndexList **  pairIndexList,
SFTIndexList indexList,
MultiSFTVector sfts,
REAL8  maxLag,
BOOLEAN  inclAutoCorr,
BOOLEAN  inclSameDetector,
REAL8  Tsft,
REAL8  Tshort 
)

Resampling-modified: construct list of SFT pairs for inclusion in statistic.

Parameters
[out]resampMultiPairIndexListresamp list of SFT pairs
[out]pairIndexListlist of SFT pairs
[in]indexListlist of indices to locate SFTs
[in]sftsset of per-detector SFT vectors
[in]maxLagMaximum allowed lag time
[in]inclAutoCorrFlag indicating whether a "pair" of an SFT with itself is allowed
[in]inclSameDetectorFlag indicating whether a "pair" of a detector with itself is allowed
[in]Tsftduration of a single SFT
[in]Tshortresampling Tshort

Definition at line 436 of file PulsarCrossCorr_v2.c.

◆ XLALCreateSFTPairIndexListShortResamp() [1/2]

int XLALCreateSFTPairIndexListShortResamp ( MultiResampSFTPairMultiIndexList **  resampMultiPairIndexList,
const REAL8  maxLag,
const BOOLEAN  inclAutoCorr,
const BOOLEAN  inclSameDetector,
const REAL8  Tsft,
const MultiLIGOTimeGPSVector *restrict  multiTimes 
)

With Tshort, and Resampling-modified: construct list of SFT pairs for inclusion in statistic.

Parameters
[out]resampMultiPairIndexListresamp list of SFT pairs
[in]maxLagMaximum allowed lag time
[in]inclAutoCorrFlag indicating whether a "pair" of an SFT with itself is allowed
[in]inclSameDetectorFlag indicating whether a "pair" of a detector with itself is allowed
[in]Tsftduration of a single SFT
[in]multiTimestimestamps containing Tshort times for each detector

Definition at line 690 of file PulsarCrossCorr_v2.c.

◆ XLALTestResampPairIndexList()

int XLALTestResampPairIndexList ( MultiResampSFTPairMultiIndexList resampMultiPairIndexList)

Check that the contents of a resampling multi-pair index list are sensible by inspection.

Parameters
[in]resampMultiPairIndexListresamp list of SFT pairs

Definition at line 950 of file PulsarCrossCorr_v2.c.

◆ XLALCalculateCrossCorrGammas()

int XLALCalculateCrossCorrGammas ( REAL8Vector **  Gamma_ave,
REAL8Vector **  Gamma_circ,
SFTPairIndexList pairIndexList,
SFTIndexList indexList,
MultiAMCoeffs multiCoeffs 
)

Construct vector of G_alpha amplitudes for each SFT pair.

Parameters
Gamma_aveOutput: vector of aa+bb values
Gamma_circOutput: vector of ab-ba values
pairIndexListInput: list of SFT pairs
indexListInput: list of SFTs
multiCoeffsInput: AM coefficients

Definition at line 989 of file PulsarCrossCorr_v2.c.

◆ XLALCalculateCrossCorrGammasResamp()

int XLALCalculateCrossCorrGammasResamp ( REAL8Vector **  Gamma_ave,
REAL8Vector **  Gamma_circ,
MultiResampSFTPairMultiIndexList resampMultiPairIndexList,
MultiAMCoeffs multiCoeffs 
)

test function for RESAMPLING

Construct multi-dimensional array of G_L_Y_K_X amplitudes for each SFT pair

Parameters
Gamma_aveOutput: vector of aa+bb values
Gamma_circOutput: vector of ab-ba values
resampMultiPairIndexListInput: resamp list of SFT pairs
multiCoeffsInput: AM coefficients

Definition at line 1034 of file PulsarCrossCorr_v2.c.

◆ XLALCalculateCrossCorrGammasResampShort()

int XLALCalculateCrossCorrGammasResampShort ( REAL8Vector **  Gamma_ave,
REAL8Vector **  Gamma_circ,
MultiResampSFTPairMultiIndexList resampMultiPairIndexList,
MultiAMCoeffs multiCoeffs 
)

test function for RESAMPLING with tShort

Construct multi-dimensional array of G_L_Y_K_X amplitudes for each SFT pair

Parameters
Gamma_aveOutput: vector of aa+bb values
Gamma_circOutput: vector of ab-ba values
resampMultiPairIndexListInput: resamp list of SFT pairs
multiCoeffsInput: AM coefficients

Definition at line 1093 of file PulsarCrossCorr_v2.c.

◆ XLALCombineCrossCorrGammas()

int XLALCombineCrossCorrGammas ( REAL8Vector **  resampGamma,
REAL8Vector Gamma,
UINT4VectorSequence sftPairForTshortPair,
REAL8  Tsft,
REAL8  Tshort 
)

Combine G_alpha amplitudes for SFT pairs into amplitudes for Tshort pairs.

Parameters
resampGammaOutput: vector of combined values, one per Tshort pair
GammaInput: vector of values, on per SFT pair
sftPairForTshortPairInput: list of SFT pair indices for each Tshort pair
[in]Tsftduration of a single SFT
[in]Tshortresampling Tshort

Definition at line 1179 of file PulsarCrossCorr_v2.c.

◆ XLALCalculatePulsarCrossCorrStatistic()

int XLALCalculatePulsarCrossCorrStatistic ( REAL8 ccStat,
REAL8 evSquared,
REAL8Vector curlyGAmp,
COMPLEX8Vector expSignalPhases,
UINT4Vector lowestBins,
REAL8VectorSequence sincList,
SFTPairIndexList sftPairs,
SFTIndexList sftIndices,
MultiSFTVector inputSFTs,
MultiNoiseWeights multiWeights,
UINT4  numBins 
)

Calculate multi-bin cross-correlation statistic.

multiWeights->data[detInd1]->data[sftNum1] * multiWeights->data[detInd2]->data[sftNum2]

Parameters
ccStatOutput: cross-correlation statistic rho
evSquaredOutput: (E[rho]/h0^2)^2
curlyGAmpInput: Amplitude of curly G for each pair
expSignalPhasesInput: Phase of signal for each SFT
lowestBinsInput: Bin index to start with for each SFT
sincListInput: input the sinc factors
sftPairsInput: flat list of SFT pairs
sftIndicesInput: flat list of SFTs
inputSFTsInput: SFT data
multiWeightsInput: nomalizeation factor S^-1 & weights for each SFT
numBinsInput Number of frequency bins to be taken into calc

Definition at line 1221 of file PulsarCrossCorr_v2.c.

◆ XLALCalculatePulsarCrossCorrStatisticResamp() [1/2]

int XLALCalculatePulsarCrossCorrStatisticResamp ( REAL8Vector *restrict  ccStatVector,
REAL8Vector *restrict  evSquaredVector,
REAL8Vector *restrict  numeEquivAve,
REAL8Vector *restrict  numeEquivCirc,
const REAL8Vector *restrict  resampCurlyGAmp,
const MultiResampSFTPairMultiIndexList *restrict  resampMultiPairs,
const MultiNoiseWeights *restrict  multiWeights,
const PulsarDopplerParams *restrict  binaryTemplateSpacings,
const PulsarDopplerParams *restrict  dopplerpos,
const MultiCOMPLEX8TimeSeries *restrict  multiTimeSeries_SRC_a,
const MultiCOMPLEX8TimeSeries *restrict  multiTimeSeries_SRC_b,
ResampCrossCorrWorkspace *restrict  ws,
COMPLEX8 *restrict  ws1KFaX_k,
COMPLEX8 *restrict  ws1KFbX_k,
COMPLEX8 *restrict  ws2LFaX_k,
COMPLEX8 *restrict  ws2LFbX_k 
)

Calculate multi-bin cross-correlation statistic using resampling.

Parameters
[out]ccStatVectorvector cross-correlation statistic rho
[out]evSquaredVectorvector (E[rho]/h0^2)
[out]numeEquivAvevector for intermediate average statistic
[out]numeEquivCircvector for intermediate circular statistic
[in]resampCurlyGAmpamplitude of curly G for each L_Y_K_X (alpha-indexed)
[in]resampMultiPairsresamp multi list of SFT pairs
[in]multiWeightsnormalization factor S^-1 & weights for each SFT
[in]binaryTemplateSpacingsSet of spacings for search
[in]dopplerposDoppler point to search
[in]multiTimeSeries_SRC_aresampled time series A
[in]multiTimeSeries_SRC_bresampled time series B
ws[in/out] first workspace
ws1KFaX_k[in/out] holder for detector 1 Fa
ws1KFbX_k[in/out] holder for detector 1 Fb
ws2LFaX_k[in/out] holder for detector 2 Fa
ws2LFbX_k[in/out] holder for detector 2 Fb

Definition at line 1338 of file PulsarCrossCorr_v2.c.

◆ XLALCalculateCrossCorrPhaseDerivatives()

int XLALCalculateCrossCorrPhaseDerivatives ( REAL8VectorSequence **  phaseDerivs,
const PulsarDopplerParams dopplerPoint,
const EphemerisData edat,
SFTIndexList indexList,
MultiSSBtimes multiTimes,
const DopplerCoordinateSystem coordSys 
)

calculate signal phase derivatives wrt Doppler coords, for each SFT

Parameters
phaseDerivsOutput: dPhi_K/dlambda_i; i is the "sequence" index, K is the "vector" index
dopplerPointInput: pulsar/binary orbit paramaters
edatInput: Earth/Sun ephemeris
indexListInput: list of SFT indices
multiTimesInput: barycentered times of SFTs
coordSysInput: coordinates with which to differentiate

Definition at line 1433 of file PulsarCrossCorr_v2.c.

◆ XLALCalculateCrossCorrPhaseDerivativesShort()

int XLALCalculateCrossCorrPhaseDerivativesShort ( REAL8VectorSequence **  resampPhaseDerivs,
const PulsarDopplerParams dopplerPoint,
const EphemerisData edat,
SFTIndexList indexList,
MultiResampSFTPairMultiIndexList resampMultiPairs,
MultiSSBtimes multiTimes,
const DopplerCoordinateSystem coordSys 
)

(test function) MODIFIED for Tshort

calculate signal phase derivatives wrt Doppler coords, for each SFT

Parameters
[out]resampPhaseDerivsdPhi_K/dlambda_i; i is the "sequence" index, K is the "vector" index
[in]dopplerPointpulsar/binary orbit paramaters
edat[in Earth/Sun ephemeris
[in]indexListlist of SFT indices
[in]resampMultiPairsresamp list of SFT pairs
[in]multiTimesbarycentered times of SFTs
[in]coordSyscoordinates with which to differentiate

Definition at line 1481 of file PulsarCrossCorr_v2.c.

◆ XLALCalculateCrossCorrPhaseMetric()

int XLALCalculateCrossCorrPhaseMetric ( gsl_matrix **  g_ij,
gsl_vector **  eps_i,
REAL8 sumGammaSq,
const REAL8VectorSequence phaseDerivs,
const SFTPairIndexList pairIndexList,
const REAL8Vector Gamma_ave,
const REAL8Vector Gamma_circ,
const DopplerCoordinateSystem coordSys 
)

calculate phase metric for CW cross-correlation search, as well as vector used for parameter offsets

This calculates the metric defined in (4.7) of Whelan et al 2015 and the parameter offset epsilon_i (not including the cosi-dependent prefactor) in defined in (4.8)

Parameters
g_ijOutput: parameter space metric
eps_iOutput: parameter offset vector from (4.8) of WSZP15
sumGammaSqOutput: sum of (Gamma_ave)^2 for normalization and sensitivity
phaseDerivsInput: dPhi_K/dlambda_i; i is the "sequence" index, K is the "vector"
pairIndexListInput: list of SFT pairs
Gamma_aveInput: vector of aa+bb values
Gamma_circInput: vector of ab-ba values
coordSysInput: coordinate directions for metric

Definition at line 1543 of file PulsarCrossCorr_v2.c.

◆ XLALCalculateCrossCorrPhaseMetricShort()

int XLALCalculateCrossCorrPhaseMetricShort ( gsl_matrix **  g_ij,
gsl_vector **  eps_i,
REAL8 sumGammaSq,
const REAL8VectorSequence phaseDerivs,
const MultiResampSFTPairMultiIndexList resampMultiPairs,
const REAL8Vector Gamma_ave,
const REAL8Vector Gamma_circ,
const DopplerCoordinateSystem coordSys 
)

(test function) Redesigning to use Tshort instead

calculate phase metric for CW cross-correlation search, as well as vector used for parameter offsets This calculates the metric defined in (4.7) of Whelan et al 2015 and the parameter offset epsilon_i (not including the cosi-dependent prefactor) in defined in (4.8)

Parameters
[out]g_ijparameter space metric
[out]eps_iparameter offset vector from (4.8) of WSZP15
[out]sumGammaSqsum of (Gamma_ave)^2 for normalization and sensitivity
[in]phaseDerivsdPhi_K/dlambda_i; i is the "sequence" index, K is the "vector"
[in]resampMultiPairsresamp multi list of SFT pairs
[in]Gamma_ave: vector of aa+bb values
[in]Gamma_circvector of ab-ba values
[in]coordSyscoordinate directions for metric

Definition at line 1634 of file PulsarCrossCorr_v2.c.

◆ XLALCalculateLMXBCrossCorrDiagMetric()

int XLALCalculateLMXBCrossCorrDiagMetric ( REAL8 hSens,
REAL8 g_ff,
REAL8 g_aa,
REAL8 g_TT,
REAL8 g_pp,
REAL8 weightedMuTAve,
PulsarDopplerParams  DopplerParams,
REAL8Vector G_alpha,
SFTPairIndexList pairIndexList,
SFTIndexList indexList,
MultiSFTVector sfts,
MultiNoiseWeights multiWeights 
)
Parameters
hSensOutput: sensitivity
g_ffOutput: Diagonal frequency metric element
g_aaOutput: Diagonal binary projected semimajor axis metric element
g_TTOutput: Diagonal reference time metric element
g_ppOutput: Diagonal orbital period metric element
weightedMuTAveoutput: weighred T mean
DopplerParamsInput: pulsar/binary orbit paramaters
G_alphaInput: vector of curlyGunshifted values
pairIndexListInput: list of SFT pairs
indexListInput: list of SFTs
sftsInput: set of per-detector SFT vectors
multiWeightsInput: nomalizeation factor S^-1 & weights for each SFT

Definition at line 1735 of file PulsarCrossCorr_v2.c.

◆ XLALCalculateLMXBCrossCorrDiagMetricShort() [1/2]

int XLALCalculateLMXBCrossCorrDiagMetricShort ( REAL8 hSens,
REAL8 g_ff,
REAL8 g_aa,
REAL8 g_TT,
REAL8 g_pp,
const PulsarDopplerParams  DopplerParams,
const REAL8Vector *restrict  G_alpha,
const MultiResampSFTPairMultiIndexList *restrict  resampMultiPairIndexList,
const MultiLIGOTimeGPSVector *restrict  timestamps,
const MultiNoiseWeights *restrict  multiWeights 
)

MODIFIED for Tshort: calculate metric diagonal components, also include the estimation of sensitivity E[rho]/(h_0)^2.

Parameters
[out]hSenssensitivity
[out]g_ffDiagonal frequency metric element
[out]g_aaDiagonal binary projected semimajor axis metric element
[out]g_TTDiagonal reference time metric element
[out]g_ppDiagonal orbital period metric element
[in]DopplerParamspulsar/binary orbit paramaters
[in]G_alphavector of curlyGunshifted values
[in]resampMultiPairIndexListresamp list of SFT pairs
[in]timestampstimestamps for resampling
[in]multiWeightsnormalization factor S^-1 & weights for each SFT

Definition at line 1812 of file PulsarCrossCorr_v2.c.

◆ XLALExtractTimestampsFromSFTsShort()

LIGOTimeGPSVector * XLALExtractTimestampsFromSFTsShort ( REAL8TimeSeries **  sciFlag,
const SFTVector sfts,
REAL8  tShort,
UINT4  numShortPerDet 
)

‍** (possible future function) Wrapper for Bessel Orbital Space stepper in the manner of V. Dergachev's loosely-coherent search *‍/

Function to extract timestamps with tShort

Parameters
[out]sciFlagscience or not flag
[in]sftsinput SFT-vector
[in]tShortnew time baseline, Tshort
[in]numShortPerDetnumber of Tshort per detector

Definition at line 2024 of file PulsarCrossCorr_v2.c.

◆ XLALGenerateTshortTimestamps()

LIGOTimeGPSVector * XLALGenerateTshortTimestamps ( const REAL8  tShort,
const UINT4  numShortPerDet,
const LIGOTimeGPS  epoch 
)

Generate timestamps for one detector with tShort.

Parameters
[in]tShortnew time baseline, Tshort
[in]numShortPerDetnumber of Tshort per detector
[in]epochstart time for first Tshort

Definition at line 2070 of file PulsarCrossCorr_v2.c.

◆ XLALModifyTimestampsFromSFTsShort() [1/2]

LIGOTimeGPSVector * XLALModifyTimestampsFromSFTsShort ( REAL8TimeSeries **  sciFlag,
const LIGOTimeGPSVector *restrict  Times,
const REAL8  tShort,
const UINT4  numShortPerDet 
)

Modify timestamps from one detector with tShort.

Parameters
[out]sciFlagscience or not flag
[in]Timesinput SFT-vector
[in]tShortnew time baseline, Tshort
[in]numShortPerDetnumber of Tshort per detector

Definition at line 2105 of file PulsarCrossCorr_v2.c.

◆ XLALGenerateMultiTshortTimestamps() [1/2]

MultiLIGOTimeGPSVector * XLALGenerateMultiTshortTimestamps ( const MultiLIGOTimeGPSVector *restrict  multiTimes,
const REAL8  tShort,
const UINT4  numShortPerDet,
const BOOLEAN  alignTShorts 
)

Given a multi-SFT vector, return a MultiLIGOTimeGPSVector holding the modified SFT timestamps (production function using tShort)

Parameters
[in]multiTimesmultiTimes, standard
[in]tShortnew time baseline, Tshort
[in]numShortPerDetnumber of Tshort per detector
[in]alignTShortsalign segments between detectors

Definition at line 2154 of file PulsarCrossCorr_v2.c.

◆ XLALModifyMultiTimestampsFromSFTs() [1/2]

MultiLIGOTimeGPSVector * XLALModifyMultiTimestampsFromSFTs ( MultiREAL8TimeSeries **  scienceFlagVect,
const MultiLIGOTimeGPSVector *restrict  multiTimes,
const REAL8  tShort,
const UINT4  numShortPerDet 
)

Given a multi-SFT vector, return a MultiLIGOTimeGPSVector holding the modified SFT timestamps (production function using tShort)

Parameters
[out]scienceFlagVectscience flag vector
[in]multiTimesmultiTimes, standard
[in]tShortnew time baseline, Tshort
[in]numShortPerDetnumber of Tshort per detector

Definition at line 2218 of file PulsarCrossCorr_v2.c.

◆ XLALExtractMultiTimestampsFromSFTsShort()

MultiLIGOTimeGPSVector * XLALExtractMultiTimestampsFromSFTsShort ( MultiREAL8TimeSeries **  scienceFlagVect,
const MultiSFTVector multiSFTs,
REAL8  tShort,
UINT4  numShortPerDet 
)

Given a multi-SFT vector, return a MultiLIGOTimeGPSVector holding the SFT timestamps (test function using tShort)

Parameters
[out]scienceFlagVectscience flag vector
[in]multiSFTsmultiSFT vector
[in]tShortnew time baseline, Tshort
[in]numShortPerDetnumber of Tshort per detector

Definition at line 2282 of file PulsarCrossCorr_v2.c.

◆ XLALFillDetectorTensorShort()

int XLALFillDetectorTensorShort ( DetectorState detState,
const LALDetector detector 
)

(test function) fill detector state with tShort, importing various slightly-modified LALPulsar functions for testing

Parameters
[in,out]detState: detector state: fill in detector-tensor
[in]detector: which detector

Definition at line 2345 of file PulsarCrossCorr_v2.c.

◆ XLALGetDetectorStatesShort()

DetectorStateSeries * XLALGetDetectorStatesShort ( const LIGOTimeGPSVector timestamps,
const LALDetector detector,
const EphemerisData edat,
REAL8  tOffset,
REAL8  tShort,
UINT4  numShortPerDet 
)

(test function) get detector states for tShort

Parameters
timestampsarray of GPS timestamps t_i
detectordetector info
edatephemeris file data
tOffsetcompute detector states at timestamps SHIFTED by tOffset
[in]tShortnew time baseline, Tshort
[in]numShortPerDetnumber of Tshort per detector

Definition at line 2424 of file PulsarCrossCorr_v2.c.

◆ XLALGetMultiDetectorStatesShort()

MultiDetectorStateSeries * XLALGetMultiDetectorStatesShort ( const MultiLIGOTimeGPSVector multiTS,
const MultiLALDetector multiIFO,
const EphemerisData edat,
REAL8  tOffset,
REAL8  tShort,
UINT4  numShortPerDet 
)

(test function) get multi detector states for tShort

Parameters
[in]multiTSmulti-IFO timestamps
[in]multiIFOmulti-IFO array holding detector info
[in]edatephemeris data
[in]tOffsetshift all timestamps by this amount
[in]tShortnew time baseline, Tshort
[in]numShortPerDetnumber of Tshort segments per detector

Definition at line 2531 of file PulsarCrossCorr_v2.c.

◆ XLALModifyAMCoeffsWeights() [1/2]

int XLALModifyAMCoeffsWeights ( REAL8Vector **  resampMultiWeightsX,
const MultiNoiseWeights *restrict  multiWeights,
const REAL8  tShort,
const REAL8  tSFTOld,
const UINT4  numShortPerDet,
const MultiLIGOTimeGPSVector *restrict  multiTimes,
const UINT4  maxNumStepsOldIfGapless,
const UINT4  X 
)

Modify amplitude weight coefficients for tShort.

Parameters
[out]resampMultiWeightsXnew weights
[in]multiWeightsold weights
[in]tShortnew time baseline, Tshort
[in]tSFTOldold time baseline, tSFTOld
[in]numShortPerDetnumber of tShort segments per detector
[in]multiTimesmulti-times vector to tell us when the SFTs were
[in]maxNumStepsOldIfGaplesshow many SFTs there would be without gaps
[in]Xdetector number

Definition at line 2612 of file PulsarCrossCorr_v2.c.

◆ XLALModifyMultiWeights() [1/2]

MultiNoiseWeights * XLALModifyMultiWeights ( const MultiNoiseWeights *restrict  multiWeights,
const REAL8  tShort,
const REAL8  tSFTOld,
const UINT4  numShortPerDet,
const MultiLIGOTimeGPSVector *restrict  multiTimes 
)

Modify multiple detectors' amplitude weight coefficients for tShort.

Parameters
[in]multiWeightsold weights
[in]tShortnew time baseline, Tshort
[in]tSFTOldold time baseline, tSFTOld
[in]numShortPerDetnumber of tShort segments per detector
[in]multiTimesmulti-times vector to tell us when the SFTs were

Definition at line 2699 of file PulsarCrossCorr_v2.c.

◆ XLALModifyMultiAMCoeffsWeights() [1/2]

int XLALModifyMultiAMCoeffsWeights ( MultiNoiseWeights **  multiWeights,
const REAL8  tShort,
const REAL8  tSFTOld,
const UINT4  numShortPerDet,
const MultiLIGOTimeGPSVector *restrict  multiTimes 
)

Modify multiple detectors' amplitude weight coefficients for tShort.

Parameters
multiWeights[in/out] old and new weights
[in]tShortnew time baseline, Tshort
[in]tSFTOldold time baseline, tSFTOld
[in]numShortPerDetnumber of tShort segments per detector
[in]multiTimesmulti-times vector to tell us when the SFTs were

Definition at line 2754 of file PulsarCrossCorr_v2.c.

◆ XLALWeightMultiAMCoeffsShort()

int XLALWeightMultiAMCoeffsShort ( MultiAMCoeffs multiAMcoef,
const MultiNoiseWeights multiWeights,
REAL8  tShort,
REAL8  tSFTOld,
UINT4  numShortPerDet,
MultiLIGOTimeGPSVector multiTimes 
)

(test function) used for weighting multi amplitude modulation coefficients

Parameters
multiAMcoef[in/out] amplitude coefficients
multiWeights[in/out] weights
[in]tShortnew time baseline, Tshort
[in]tSFTOldold time baseline, tSFTOld
[in]numShortPerDetnumber of tShort segments per detector
[in]multiTimesmulti-times vector to tell us when the SFTs were

Definition at line 2801 of file PulsarCrossCorr_v2.c.

◆ XLALComputeAMCoeffsShort()

AMCoeffs * XLALComputeAMCoeffsShort ( const DetectorStateSeries DetectorStates,
SkyPosition  skypos 
)

(test function) used for computing amplitude modulation weights

Parameters
DetectorStatestimeseries of detector states
skypos{alpha,delta} of the source

Definition at line 2972 of file PulsarCrossCorr_v2.c.

◆ XLALComputeMultiAMCoeffsShort()

MultiAMCoeffs * XLALComputeMultiAMCoeffsShort ( const MultiDetectorStateSeries multiDetStates,
const MultiNoiseWeights multiWeights,
SkyPosition  skypos,
REAL8  tShort,
REAL8  tSFTOld,
UINT4  numShortPerDet,
MultiLIGOTimeGPSVector multiTimes 
)

(test function) used for computing multi amplitude modulation weights

Parameters
[in]multiDetStatesdetector-states at timestamps t_i
[in]multiWeightsnoise-weights at timestamps t_i (can be NULL)
skypossource sky-position [in equatorial coords!]
[in]tShortnew time baseline, Tshort
[in]tSFTOldold time baseline, tSFTOld
[in]numShortPerDetnumber of tShort segments per detector
[in]multiTimesmulti-times vector to tell us when the SFTs were

Definition at line 3046 of file PulsarCrossCorr_v2.c.

◆ XLALCrossCorrNumShortPerDetector()

UINT4 XLALCrossCorrNumShortPerDetector ( const REAL8  resampTshort,
const INT4  startTime,
const INT4  endTime 
)

Compute the number of tShort segments per detector.

Parameters
[in]resampTshortresampling Tshort
[in]startTimestart time of observation
[in]endTimeend time of observation

Definition at line 3108 of file PulsarCrossCorr_v2.c.

◆ XLALCrossCorrGapFinderResamp() [1/2]

REAL8TimeSeries * XLALCrossCorrGapFinderResamp ( LIGOTimeGPSVector *restrict  timestamps,
const LIGOTimeGPSVector *restrict  Times 
)

Find gaps in the data given the SFTs.

Parameters
[in]timestampstimestamps vector
[in]Timesinput SFT-vector

Definition at line 3123 of file PulsarCrossCorr_v2.c.

◆ XLALCrossCorrGapFinderResampAlt() [1/2]

REAL8TimeSeries * XLALCrossCorrGapFinderResampAlt ( LIGOTimeGPSVector *restrict  timestamps,
const SFTVector *restrict  sfts 
)

(test function) find gaps in the data given the SFTs

Parameters
[in]timestampstimestamps vector
[in]sftsinput SFT-vector

Definition at line 3179 of file PulsarCrossCorr_v2.c.

◆ XLALEquipCrossCorrPairsWithScienceFlags()

int XLALEquipCrossCorrPairsWithScienceFlags ( MultiResampSFTPairMultiIndexList resampMultiPairs,
MultiREAL8TimeSeries scienceFlagVect 
)

Demarcate pairs with flags about whether data exists in zero-padded timeseries.

Parameters
[in]resampMultiPairsresampling pairs
[in]scienceFlagVectscience flags

Definition at line 3234 of file PulsarCrossCorr_v2.c.

◆ XLALCreateCrossCorrWorkspace()

int XLALCreateCrossCorrWorkspace ( ResampCrossCorrWorkspace **  wsOut,
COMPLEX8 **  ws1KFaX_kOut,
COMPLEX8 **  ws1KFbX_kOut,
COMPLEX8 **  ws2LFaX_kOut,
COMPLEX8 **  ws2LFbX_kOut,
MultiCOMPLEX8TimeSeries **  multiTimeSeries_SRC_aOut,
MultiCOMPLEX8TimeSeries **  multiTimeSeries_SRC_bOut,
const PulsarDopplerParams  binaryTemplateSpacings,
FstatInput *  resampFstatInput,
const UINT4  numFreqBins,
const REAL8  tCoh,
const BOOLEAN  treatWarningsAsErrors 
)

‍** (possible future function) does not work – would adjust timestamps of an SFT vector *‍/

Generates a resampling workspace for CrossCorr

Parameters
[out]wsOutworkspace for one cross-correlation
[out]ws1KFaX_kOutholder for detector 1 Fa
[out]ws1KFbX_kOutholder for detector 1 Fb
[out]ws2LFaX_kOutholder for detector 2 Fa
[out]ws2LFbX_kOutholder for detector 2 Fb
[out]multiTimeSeries_SRC_aOutresampling A time series
[out]multiTimeSeries_SRC_bOutresampling B time series
[in]binaryTemplateSpacingsbinary template spacings
[in]resampFstatInputresampling f-statistic input
[in]numFreqBinsnumber of frequency bins
[in]tCohTcoh = 2 * max lag + resampling tShort
[in]treatWarningsAsErrorsabort program if any warnings encountered

Definition at line 3311 of file PulsarCrossCorr_v2.c.

◆ XLALDestroySFTIndexList()

void XLALDestroySFTIndexList ( SFTIndexList sftIndices)

Destroy a SFTIndexList structure.

Note, this is "NULL-robust" in the sense that it will not crash on NULL-entries anywhere in this struct, so it can be used for failure-cleanup even on incomplete structs

Definition at line 3446 of file PulsarCrossCorr_v2.c.

◆ XLALDestroySFTPairIndexList()

void XLALDestroySFTPairIndexList ( SFTPairIndexList sftPairs)

Destroy a SFTPairIndexList structure.

Note, this is "NULL-robust" in the sense that it will not crash on NULL-entries anywhere in this struct, so it can be used for failure-cleanup even on incomplete structs

Definition at line 3469 of file PulsarCrossCorr_v2.c.

◆ XLALDestroyResampSFTIndexList()

void XLALDestroyResampSFTIndexList ( ResampSFTIndexList sftResampList)

Definition at line 3485 of file PulsarCrossCorr_v2.c.

◆ XLALDestroyResampSFTMultiIndexList()

void XLALDestroyResampSFTMultiIndexList ( ResampSFTMultiIndexList sftResampMultiList)

Definition at line 3500 of file PulsarCrossCorr_v2.c.

◆ XLALDestroyResampSFTPairMultiIndexList()

void XLALDestroyResampSFTPairMultiIndexList ( ResampSFTPairMultiIndexList sftResampPairMultiList)

Definition at line 3518 of file PulsarCrossCorr_v2.c.

◆ XLALDestroyMultiResampSFTPairMultiIndexList()

void XLALDestroyMultiResampSFTPairMultiIndexList ( MultiResampSFTPairMultiIndexList sftMultiPairsResamp)

Definition at line 3537 of file PulsarCrossCorr_v2.c.

◆ XLALDestroyMultiMatchList()

void XLALDestroyMultiMatchList ( MultiResampSFTMultiCountList localMultiListOfLmatchingGivenMultiK)

Definition at line 3563 of file PulsarCrossCorr_v2.c.

◆ XLALDestroyResampCrossCorrWorkspace()

void XLALDestroyResampCrossCorrWorkspace ( void *  workspace)

Definition at line 3592 of file PulsarCrossCorr_v2.c.

◆ XLALApplyCrossCorrFreqShiftResamp()

static int XLALApplyCrossCorrFreqShiftResamp ( COMPLEX8 *restrict  xOut,
const COMPLEX8TimeSeries *restrict  xIn,
const PulsarDopplerParams *restrict  doppler,
const REAL8  freqShift,
const UINT4  indexStartResamp,
const UINT4  indexEndResamp,
const UINT4  numSamplesIn,
const UINT4  insertPoint 
)
static

Imported and modified from ComputeFstat_Resamp.c.

Parameters
[out]xOutthe spindown-corrected SRC-frame timeseries
[in]xInthe input SRC-frame timeseries
[in]dopplercontaining spindown parameters
[in]freqShiftfrequency-shift to apply, sign is "new - old"
[in]indexStartResampindex in resampling time series to start
[in]indexEndResampindex in resampling time series to end
[in]numSamplesInnumber of samples in the output
[in]insertPointnumber of sample indices offset to begin output

Definition at line 3621 of file PulsarCrossCorr_v2.c.

◆ XLALComputeFaFb_CrossCorrResamp()

static int XLALComputeFaFb_CrossCorrResamp ( ResampCrossCorrWorkspace *restrict  ws,
COMPLEX8 *restrict  wsFaX_k,
COMPLEX8 *restrict  wsFbX_k,
const MultiResampSFTPairMultiIndexList *restrict  resampMultiPairs,
const MultiCOMPLEX8TimeSeries *restrict  multiTimeSeries_SRC_a,
const MultiCOMPLEX8TimeSeries *restrict  multiTimeSeries_SRC_b,
const PulsarDopplerParams *restrict  dopplerpos,
const PulsarDopplerParams *restrict  binaryTemplateSpacings,
const REAL8  SRCsampPerTcoh,
const UINT4  detX,
const UINT4  sftK,
const UINT4  detY,
const BOOLEAN  isL 
)
static

Compute the equivalent of Fa and Fb for CrossCorr's rho statistic.

Parameters
[out]wscontains modified Fa and Fb for cross-correlation
[out]wsFaX_kcontains modified and normalized Fa for cross-correlation statistic
[out]wsFbX_kcontains modified and normalized Fb for cross-correlation statistic
[in]resampMultiPairsresamp multi list of SFT pairs
[in]multiTimeSeries_SRC_aResampled, heterodyned A(t)x(t)
[in]multiTimeSeries_SRC_bResampled, heterodyned B(t)x(t)
[in]dopplerposDoppler point to search
[in]binaryTemplateSpacingsspacings for the search
[in]SRCsampPerTcohfloating point number of samples per tShort equivalent
[in]detXdetector X index
[in]sftKtShort K index
[in]detYdetector Y index
[in]isLIndicates that is not K but L, the second half of the cross-corr pair

Definition at line 3697 of file PulsarCrossCorr_v2.c.

◆ XLALCreateSFTPairIndexListAccurateResamp() [2/2]

int XLALCreateSFTPairIndexListAccurateResamp ( SFTPairIndexList **  pairIndexList,
UINT4VectorSequence **  sftPairForResampPair,
SFTIndexList indexList,
MultiResampSFTPairMultiIndexList resampPairs,
const MultiLIGOTimeGPSVector *_LAL_RESTRICT_  multiTimes,
const MultiLIGOTimeGPSVector *_LAL_RESTRICT_  resampMultiTimes 
)

◆ XLALCreateSFTPairIndexListShortResamp() [2/2]

int XLALCreateSFTPairIndexListShortResamp ( MultiResampSFTPairMultiIndexList **  resampPairIndexList,
const REAL8  maxLag,
const BOOLEAN  inclAutoCorr,
const BOOLEAN  inclSameDetector,
const REAL8  Tsft,
const MultiLIGOTimeGPSVector *_LAL_RESTRICT_  multiTimes 
)

◆ XLALCalculatePulsarCrossCorrStatisticResamp() [2/2]

int XLALCalculatePulsarCrossCorrStatisticResamp ( REAL8Vector *_LAL_RESTRICT_  ccStatVector,
REAL8Vector *_LAL_RESTRICT_  evSquaredVector,
REAL8Vector *_LAL_RESTRICT_  numeEquivAve,
REAL8Vector *_LAL_RESTRICT_  numeEquivCirc,
const REAL8Vector *_LAL_RESTRICT_  resampCurlyGAmp,
const MultiResampSFTPairMultiIndexList *_LAL_RESTRICT_  resampPairs,
const MultiNoiseWeights *_LAL_RESTRICT_  multiWeights,
const PulsarDopplerParams *_LAL_RESTRICT_  binaryTemplateSpacings,
const PulsarDopplerParams *_LAL_RESTRICT_  dopplerpos,
const MultiCOMPLEX8TimeSeries *_LAL_RESTRICT_  multiTimeSeries_SRC_a,
const MultiCOMPLEX8TimeSeries *_LAL_RESTRICT_  multiTimeSeries_SRC_b,
ResampCrossCorrWorkspace *_LAL_RESTRICT_  ws,
COMPLEX8 *_LAL_RESTRICT_  ws1KFaX_k,
COMPLEX8 *_LAL_RESTRICT_  ws1KFbX_k,
COMPLEX8 *_LAL_RESTRICT_  ws2LFaX_k,
COMPLEX8 *_LAL_RESTRICT_  ws2LFbX_k 
)

◆ XLALCalculateLMXBCrossCorrDiagMetricShort() [2/2]

int XLALCalculateLMXBCrossCorrDiagMetricShort ( REAL8 hSens,
REAL8 g_ff,
REAL8 g_aa,
REAL8 g_TT,
REAL8 g_pp,
const PulsarDopplerParams  DopplerParams,
const REAL8Vector *_LAL_RESTRICT_  G_alpha,
const MultiResampSFTPairMultiIndexList *_LAL_RESTRICT_  resampMultiPairIndexList,
const MultiLIGOTimeGPSVector *_LAL_RESTRICT_  timestamps,
const MultiNoiseWeights *_LAL_RESTRICT_  multiWeights 
)

◆ XLALModifyTimestampsFromSFTsShort() [2/2]

LIGOTimeGPSVector * XLALModifyTimestampsFromSFTsShort ( REAL8TimeSeries **  sciFlag,
const LIGOTimeGPSVector *_LAL_RESTRICT_  Times,
const REAL8  tShort,
const UINT4  numShortPerDet 
)

◆ XLALGenerateMultiTshortTimestamps() [2/2]

MultiLIGOTimeGPSVector * XLALGenerateMultiTshortTimestamps ( const MultiLIGOTimeGPSVector *_LAL_RESTRICT_  multiTimes,
const REAL8  tShort,
const UINT4  numShortPerDet,
const BOOLEAN  alignTShorts 
)

◆ XLALModifyMultiTimestampsFromSFTs() [2/2]

MultiLIGOTimeGPSVector * XLALModifyMultiTimestampsFromSFTs ( MultiREAL8TimeSeries **  scienceFlagVect,
const MultiLIGOTimeGPSVector *_LAL_RESTRICT_  multiTimes,
const REAL8  tShort,
const UINT4  numShortPerDet 
)

◆ XLALModifyAMCoeffsWeights() [2/2]

int XLALModifyAMCoeffsWeights ( REAL8Vector **  resampMultiWeightsX,
const MultiNoiseWeights *_LAL_RESTRICT_  multiWeights,
const REAL8  tShort,
const REAL8  tSFTOld,
const UINT4  numShortPerDet,
const MultiLIGOTimeGPSVector *_LAL_RESTRICT_  multiTimes,
const UINT4  maxNumStepsOldIfGapless,
const UINT4  X 
)

◆ XLALModifyMultiWeights() [2/2]

MultiNoiseWeights * XLALModifyMultiWeights ( const MultiNoiseWeights *_LAL_RESTRICT_  multiWeights,
const REAL8  tShort,
const REAL8  tSFTOld,
const UINT4  numShortPerDet,
const MultiLIGOTimeGPSVector *_LAL_RESTRICT_  multiTimes 
)

◆ XLALModifyMultiAMCoeffsWeights() [2/2]

int XLALModifyMultiAMCoeffsWeights ( MultiNoiseWeights **  multiWeights,
const REAL8  tShort,
const REAL8  tSFTOld,
const UINT4  numShortPerDet,
const MultiLIGOTimeGPSVector *_LAL_RESTRICT_  multiTimes 
)

◆ XLALCrossCorrGapFinderResamp() [2/2]

REAL8TimeSeries * XLALCrossCorrGapFinderResamp ( LIGOTimeGPSVector *_LAL_RESTRICT_  timestamps,
const LIGOTimeGPSVector *_LAL_RESTRICT_  Times 
)

◆ XLALCrossCorrGapFinderResampAlt() [2/2]

REAL8TimeSeries * XLALCrossCorrGapFinderResampAlt ( LIGOTimeGPSVector *_LAL_RESTRICT_  timestamps,
const SFTVector *_LAL_RESTRICT_  sfts 
)