Prototypes | |
SFTCatalog * | findSFTdata (const UserInput_t *params) |
Find the SFT data specified by user input. More... | |
MultiSFTVector * | extractSFTband (const SFTCatalog *catalog, const REAL8 minfbin, const REAL8 maxfbin) |
Extract the SFT coefficients from the band of interest. More... | |
MultiSFTVector * | getMultiSFTVector (UserInput_t *params, const REAL8 minfbin, const REAL8 maxfbin) |
Get a MultiSFTVector from the user-input values. More... | |
REAL4VectorAligned * | coherentlyAddSFTs (const MultiSFTVector *multiSFTvector, const MultiSSBtimes *multissb, const MultiAMCoeffs *multiAMcoeffs, const LIGOTimeGPSVector *jointTimestamps, const REAL4VectorAlignedArray *backgroundRatio, const INT4 cosiSign, const assumeNSparams *NSparams, const UserInput_t *params, REAL4VectorAligned *backgroundScaling) |
Add SFTs together from a MultiSFTVector. More... | |
REAL4TimeSeries * | computeNSfreqTS (const PulsarParams *pulsarParams, LIGOTimeGPS tepoch, REAL8 Tsft, REAL8 SFToverlap, REAL8 duration) |
Compute the GW frequency time series (in the SSB) for a set of assumed parameters. More... | |
REAL4VectorAligned * | convertSFTdataToPowers (const SFTVector *sfts, const UserInput_t *params, const REAL8 normalization) |
Convert a SFTVector of sfts into powers. More... | |
REAL4VectorAligned * | readInSFTs (UserInput_t *params, const REAL8 normalization, const REAL8 minfbin, const REAL8 maxfbin) |
Read in the data SFTs in one function. More... | |
MultiLIGOTimeGPSVector * | getMultiTimeStampsFromSFTCatalog (const SFTCatalog *catalog) |
Create a list of timestamps from an SFTCatalog. More... | |
MultiLIGOTimeGPSVector * | getMultiTimeStampsFromSFTs (const MultiSFTVector *multiSFTvector, const UserInput_t *params) |
Create a list of timestamps from SFTs that might be a subset from those in an SFTCatalog, applying KS/Kuipers test if desired. More... | |
MultiLIGOTimeGPSVector * | getMultiTimeStampsFromSegmentsFile (const LALStringVector *filenames, const REAL8 t0, const REAL8 Tsft, const REAL8 SFToverlap, const REAL8 dur) |
Create a list of timestamps from a segment list. More... | |
LIGOTimeGPSVector * | jointTimestampsFromMultiTimestamps (const MultiLIGOTimeGPSVector *multiTimestamps) |
MultiLIGOTimeGPSVector * | squeezeMultiTimestamps (const MultiLIGOTimeGPSVector *multiTS) |
INT4 | printSFTtimestamps2File (const MultiSFTVector *multiSFTvector, const UserInput_t *params) |
INT4Vector * | markBadSFTs (const REAL4VectorAligned *tfdata, const UserInput_t *params) |
Mark the non-Gaussian SFTs using K-S and Kuiper's tests. More... | |
void | removeBadSFTs (REAL4VectorAligned *tfdata, const INT4Vector *badsfts) |
Remove the marked SFTs as bad by setting values to 0. More... | |
MultiSFTVector * | generateSFTdata (UserInput_t *uvar, const MultiLALDetector *detectors, const EphemerisData *edat, const INT4 maxbinshift, const gsl_rng *rng) |
INT4 | slideTFdata (REAL4VectorAligned *output, const UserInput_t *params, const REAL4VectorAligned *tfdata, const INT4Vector *binshifts) |
Slide the time-frequency data to account for detector motion. More... | |
INT4 | tfRngMeans (REAL4VectorAligned *output, const REAL4VectorAligned *tfdata, const UINT4 numffts, const UINT4 numfbins, const UINT4 blksize) |
Determine the running mean of each SFT. More... | |
INT4 | replaceTFdataWithSubsequentTFdata (REAL4VectorAlignedArray *tfdataarray, const UINT4 numffts) |
INT4 | tfMeanSubtract (REAL4VectorAligned *tfdata, const REAL4VectorAligned *rngMeans, const REAL4VectorAligned *backgroundScaling, const UINT4 numffts, const UINT4 numfbins) |
Subtract running mean values from the SFT data, modifying input time-frequency data. More... | |
INT4 | tfWeight (REAL4VectorAligned *output, const REAL4VectorAligned *tfdata, REAL4VectorAligned *rngMeans, REAL4VectorAligned *antPatternWeights, const REAL4VectorAligned *backgroundScaling, const INT4Vector *indexValuesOfExistingSFTs, const UserInput_t *params) |
Weight the SFTs based on antenna pattern and noise variance (Equation 11, assuming the input time-frequency data is already mean subtracted) More... | |
REAL8 | determineSumOfWeights (const REAL4VectorAligned *antweightssq, const REAL4VectorAligned *rngMeanssq) |
Determine the sum of the weights. More... | |
INT4Vector * | existingSFTs (const REAL4VectorAligned *tfdata, const UINT4 numffts) |
Determine if the SFTs are existing based on whether the first data point of power in each SFT is 0. More... | |
INT4 | checkBackgroundScaling (const REAL4VectorAligned *background, const REAL4VectorAligned *backgroundScaling, const INT4Vector *SFTexistVector) |
Go through the backgroundScaling vector and zero out if the SFTexistVector has a 0 in that SFT location instead of 1. More... | |
Go to the source code of this file.
SFTCatalog * findSFTdata | ( | const UserInput_t * | params | ) |
Find the SFT data specified by user input.
[in] | params | Pointer to the UserInput_t |
Definition at line 35 of file SFTfunctions.c.
MultiSFTVector * extractSFTband | ( | const SFTCatalog * | catalog, |
const REAL8 | minfbin, | ||
const REAL8 | maxfbin | ||
) |
Extract the SFT coefficients from the band of interest.
[in] | catalog | Pointer to the SFTCatalog |
[in] | minfbin | Frequency value of the minimum frequency bin |
[in] | maxfbin | Frequency value of the maximum frequency bin |
Definition at line 76 of file SFTfunctions.c.
MultiSFTVector * getMultiSFTVector | ( | UserInput_t * | params, |
const REAL8 | minfbin, | ||
const REAL8 | maxfbin | ||
) |
Get a MultiSFTVector from the user-input values.
[in] | params | Pointer to UserInput_t |
[in] | minfbin | Frequency value of the minimum frequency bin |
[in] | maxfbin | Frequency value of the maximum frequency bin |
Definition at line 102 of file SFTfunctions.c.
REAL4VectorAligned * coherentlyAddSFTs | ( | const MultiSFTVector * | multiSFTvector, |
const MultiSSBtimes * | multissb, | ||
const MultiAMCoeffs * | multiAMcoeffs, | ||
const LIGOTimeGPSVector * | jointTimestamps, | ||
const REAL4VectorAlignedArray * | backgroundRatio, | ||
const INT4 | cosiSign, | ||
const assumeNSparams * | NSparams, | ||
const UserInput_t * | params, | ||
REAL4VectorAligned * | backgroundScaling | ||
) |
Add SFTs together from a MultiSFTVector.
[in] | multiSFTvector | Pointer to a MultiSFTVector containing the SFT data |
[in] | multissb | Pointer to a MultiSSBtimes structure |
[in] | multiAMcoeffs | Pointer to a MultiAMCoeffs structure |
[in] | jointTimestamps | Pointer to a LIGOTimeGPSVector of joint SFT times from all detectors |
[in] | backgroundRatio | Pointer to a REAL4VectorAlignedArray of the running means of each IFO divided by the running mean of IFO_0 |
[in] | cosiSign | Value of 1, 0, -1 where 1 means average cosi over [0,1], 0 means average over [-1,1], and -1 means average over [-1,0] |
[in] | NSparams | Values for a set of assumed NS spin/binary motion parameters |
[in] | params | Pointer to UserInput_t |
[out] | backgroundScaling | Pointer to REAL4VectorAligned of background scaling values |
Definition at line 147 of file SFTfunctions.c.
REAL4TimeSeries * computeNSfreqTS | ( | const PulsarParams * | pulsarParams, |
LIGOTimeGPS | tepoch, | ||
REAL8 | Tsft, | ||
REAL8 | SFToverlap, | ||
REAL8 | duration | ||
) |
Compute the GW frequency time series (in the SSB) for a set of assumed parameters.
This is supposed to be the same as what is done for Makefakedata
[in] | pulsarParams | Pointer to PulsarParams struct |
[in] | tepoch | Start time in SSB |
[in] | Tsft | SFT length (s) |
[in] | SFToverlap | Overlap of the SFTs (s) |
[in] | duration | Total duration of the search |
Definition at line 689 of file SFTfunctions.c.
REAL4VectorAligned * convertSFTdataToPowers | ( | const SFTVector * | sfts, |
const UserInput_t * | params, | ||
const REAL8 | normalization | ||
) |
Convert a SFTVector of sfts into powers.
[in] | sfts | Pointer to the SFTVector |
[in] | params | Pointer to the UserInput_t |
[in] | normalization | Normalization value to prevent underflow |
Definition at line 753 of file SFTfunctions.c.
REAL4VectorAligned * readInSFTs | ( | UserInput_t * | params, |
const REAL8 | normalization, | ||
const REAL8 | minfbin, | ||
const REAL8 | maxfbin | ||
) |
Read in the data SFTs in one function.
[in] | params | Pointer to UserInput_t |
[in] | normalization | Normalization value determined from expected noise background |
[in] | minfbin | Frequency value of the minimum frequency bin |
[in] | maxfbin | Frequency value of the maximum frequency bin |
Definition at line 826 of file SFTfunctions.c.
MultiLIGOTimeGPSVector * getMultiTimeStampsFromSFTCatalog | ( | const SFTCatalog * | catalog | ) |
Create a list of timestamps from an SFTCatalog.
[in] | catalog | Pointer to an SFTCatalog |
Definition at line 849 of file SFTfunctions.c.
MultiLIGOTimeGPSVector * getMultiTimeStampsFromSFTs | ( | const MultiSFTVector * | multiSFTvector, |
const UserInput_t * | params | ||
) |
Create a list of timestamps from SFTs that might be a subset from those in an SFTCatalog, applying KS/Kuipers test if desired.
[in] | multiSFTvector | Pointer to a MultiSFTVector |
[in] | params | Pointer to UserInput_t |
Definition at line 873 of file SFTfunctions.c.
MultiLIGOTimeGPSVector * getMultiTimeStampsFromSegmentsFile | ( | const LALStringVector * | filenames, |
const REAL8 | t0, | ||
const REAL8 | Tsft, | ||
const REAL8 | SFToverlap, | ||
const REAL8 | dur | ||
) |
Create a list of timestamps from a segment list.
[in] | filenames | LALStringVector of filenames |
[in] | t0 | Start time of the search |
[in] | Tsft | SFT timespan in seconds |
[in] | SFToverlap | Overlap of the SFTs in seconds |
[in] | dur | Duration of the search in seconds |
Definition at line 938 of file SFTfunctions.c.
LIGOTimeGPSVector * jointTimestampsFromMultiTimestamps | ( | const MultiLIGOTimeGPSVector * | multiTimestamps | ) |
Definition at line 981 of file SFTfunctions.c.
MultiLIGOTimeGPSVector * squeezeMultiTimestamps | ( | const MultiLIGOTimeGPSVector * | multiTS | ) |
Definition at line 1075 of file SFTfunctions.c.
INT4 printSFTtimestamps2File | ( | const MultiSFTVector * | multiSFTvector, |
const UserInput_t * | params | ||
) |
[in] | multiSFTvector | Pointer to MultiSFTVector of the SFTs |
[in] | params | Pointer to the user input |
Definition at line 1105 of file SFTfunctions.c.
INT4Vector * markBadSFTs | ( | const REAL4VectorAligned * | tfdata, |
const UserInput_t * | params | ||
) |
Mark the non-Gaussian SFTs using K-S and Kuiper's tests.
[in] | tfdata | Pointer to REAL4VectorAligned of SFT powers |
[in] | params | Pointer to UserInput_t |
Definition at line 1179 of file SFTfunctions.c.
void removeBadSFTs | ( | REAL4VectorAligned * | tfdata, |
const INT4Vector * | badsfts | ||
) |
Remove the marked SFTs as bad by setting values to 0.
[in,out] | tfdata | Pointer to REAL4VectorAligned of SFT powers |
[in] | badsfts | Poienter to INT4Vector of bad SFTs |
Definition at line 1234 of file SFTfunctions.c.
MultiSFTVector * generateSFTdata | ( | UserInput_t * | uvar, |
const MultiLALDetector * | detectors, | ||
const EphemerisData * | edat, | ||
const INT4 | maxbinshift, | ||
const gsl_rng * | rng | ||
) |
Definition at line 1247 of file SFTfunctions.c.
INT4 slideTFdata | ( | REAL4VectorAligned * | output, |
const UserInput_t * | params, | ||
const REAL4VectorAligned * | tfdata, | ||
const INT4Vector * | binshifts | ||
) |
Slide the time-frequency data to account for detector motion.
[out] | output | Pointer to REAL4VectorAligned of SFT powers that have been corrected |
[in] | params | Pointer to UserInput_t |
[in] | tfdata | Pointer to REAL4VectorAligned of SFT powers |
[in] | binshifts | Pointer to INT4Vector of bin shift values |
Definition at line 1479 of file SFTfunctions.c.
INT4 tfRngMeans | ( | REAL4VectorAligned * | output, |
const REAL4VectorAligned * | tfdata, | ||
const UINT4 | numffts, | ||
const UINT4 | numfbins, | ||
const UINT4 | blksize | ||
) |
Determine the running mean of each SFT.
[out] | output | Pointer to REAL4VectorAligned of running mean values of each SFT |
[in] | tfdata | Pointer to REAL4VectorAligned of SFT powers |
[in] | numffts | Number of SFTs in the observation time |
[in] | numfbins | Number of frequency bins |
[in] | blksize | Number of bins in the running median |
Definition at line 1512 of file SFTfunctions.c.
INT4 replaceTFdataWithSubsequentTFdata | ( | REAL4VectorAlignedArray * | tfdataarray, |
const UINT4 | numffts | ||
) |
[in,out] | tfdataarray | Pointer to a REAL4VectorAlignedArray that has the time-frequency data of powers |
[in] | numffts | Number of FFTs in the total observation time |
Definition at line 1581 of file SFTfunctions.c.
INT4 tfMeanSubtract | ( | REAL4VectorAligned * | tfdata, |
const REAL4VectorAligned * | rngMeans, | ||
const REAL4VectorAligned * | backgroundScaling, | ||
const UINT4 | numffts, | ||
const UINT4 | numfbins | ||
) |
Subtract running mean values from the SFT data, modifying input time-frequency data.
[in,out] | tfdata | Pointer to REAL4VectorAligned time-frequency data (modified by this function!) |
[in] | rngMeans | Pointer to REAL4VectorAligned of running mean values |
[in] | backgroundScaling | Pointer to REAL4VectorAligned of background scaling values |
[in] | numffts | Number of SFTs from observation time |
[in] | numfbins | Number of SFT frequency bins |
Definition at line 1610 of file SFTfunctions.c.
INT4 tfWeight | ( | REAL4VectorAligned * | output, |
const REAL4VectorAligned * | tfdata, | ||
REAL4VectorAligned * | rngMeans, | ||
REAL4VectorAligned * | antPatternWeights, | ||
const REAL4VectorAligned * | backgroundScaling, | ||
const INT4Vector * | indexValuesOfExistingSFTs, | ||
const UserInput_t * | params | ||
) |
Weight the SFTs based on antenna pattern and noise variance (Equation 11, assuming the input time-frequency data is already mean subtracted)
[out] | output | Pointer to REAL4VectorAligned of mean subtracted, noise and antenna pattern weighted SFTs |
[in] | tfdata | Pointer to REAL4VectorAligned of mean subtracted SFTs |
[in] | rngMeans | Pointer to REAL4VectorAligned of running mean values |
[in] | antPatternWeights | Pointer to REAL4VectorAligned of antenna pattern weights |
[in] | backgroundScaling | Pointer to REAL4VectorAligned of background scaling values |
[in] | indexValuesOfExistingSFTs | Pointer to INT4Vector of the index values of the existing SFTs |
[in] | params | Pointer to UserInput_t |
Definition at line 1635 of file SFTfunctions.c.
REAL8 determineSumOfWeights | ( | const REAL4VectorAligned * | antweightssq, |
const REAL4VectorAligned * | rngMeanssq | ||
) |
Determine the sum of the weights.
[in] | antweightssq | Antenna pattern weights squared |
[in] | rngMeanssq | Running mean values squared |
Definition at line 1717 of file SFTfunctions.c.
INT4Vector * existingSFTs | ( | const REAL4VectorAligned * | tfdata, |
const UINT4 | numffts | ||
) |
Determine if the SFTs are existing based on whether the first data point of power in each SFT is 0.
[in] | tfdata | Pointer to REAL4VectorAligned of time-frequency data |
[in] | numffts | Number of SFTs from the observation time |
Definition at line 1738 of file SFTfunctions.c.
INT4 checkBackgroundScaling | ( | const REAL4VectorAligned * | background, |
const REAL4VectorAligned * | backgroundScaling, | ||
const INT4Vector * | SFTexistVector | ||
) |
Go through the backgroundScaling vector and zero out if the SFTexistVector has a 0 in that SFT location instead of 1.
[in,out] | background | Pointer to REAL4VectorAligned of background data |
[in,out] | backgroundScaling | Pointer to REAL4VectorAligned of background scaling data |
[in] | SFTexistVector | Pointer to INT4Vector of 0 or 1 values representing if an SFT is present (1) or not (0) |
Definition at line 1771 of file SFTfunctions.c.