|
int | XLALCompareBSGLComputations (const REAL4 TwoF, const UINT4 numDetectors, const REAL4Vector *TwoFX, const REAL4 cohFstar0, const REAL4 *oLtLGX, const UINT4 numSegs, const REAL4 tolerance, const LRstat_variant_t LRstat_variant, const REAL4 maxTwoF, const REAL4Vector *maxTwoFX) |
| Test function to compute BSGL values from XLALComputeBSGL against those recomputed from scratch ("pedestrian" formula); compare the results and exit if tolerance is violated. More...
|
|
REAL4 | XLALComputePedestrianLRStat (const REAL4 TwoF, const UINT4 numDetectors, const REAL4Vector *TwoFX, const REAL4 cohFstar0, const REAL4 *oLtLGX, const BOOLEAN useLogCorrection, const LRstat_variant_t LRstat_variant, const REAL4 maxTwoF, const REAL4Vector *maxTwoFX, const UINT4 numSegs) |
| compute BSGL "the pedestrian way", from Eq. More...
|
|
int | XLALCheckBSGLDifferences (const REAL4 diff, const REAL4 tolerance, const CHAR *casestring) |
|
int | XLALCheckBSGLVectorFunctions (void) |
|
int | main (int argc, char *argv[]) |
|
Go to the source code of this file.
◆ TRUE
◆ FALSE
◆ VEC_LEN
◆ NUM_SEGS
◆ LRstat_variant_t
Enum for LR-statistic variants.
Enumerator |
---|
LRS_BSGL | |
LRS_BSGLtL | |
LRS_BtSGLtL | |
LRS_BStSGLtL | |
Definition at line 37 of file LineRobustStatsTest.c.
◆ XLALCompareBSGLComputations()
Test function to compute BSGL values from XLALComputeBSGL against those recomputed from scratch ("pedestrian" formula); compare the results and exit if tolerance is violated.
- Parameters
-
TwoF | multi-detector Fstat |
numDetectors | number of detectors |
TwoFX | vector of single-detector Fstats |
cohFstar0 | amplitude prior normalization for lines |
oLtLGX | array of single-detector prior line odds ratio, can be NULL |
numSegs | number of segments |
tolerance | tolerance for comparisons |
LRstat_variant | which statistic variant to use |
maxTwoF | multi-detector maximum Fstat over segments |
maxTwoFX | vector of single-detector maximum Fstats over segments |
Definition at line 199 of file LineRobustStatsTest.c.
◆ XLALComputePedestrianLRStat()
compute BSGL "the pedestrian way", from Eq.
(40) of Keitel, Prix, Papa, Leaci, Siddiqi, PR D 89, 064023 (2014), explicit formula for numDet=2: log10 BSGL = F - log ( e^F* + e^{F1}*oLtLG1/oLtLG + e^{F2}*oLtLG2/oLtLG )
- Parameters
-
TwoF | multi-detector Fstat |
numDetectors | number of detectors |
TwoFX | vector of single-detector Fstats |
cohFstar0 | amplitude prior normalization for lines |
oLtLGX | array of single-detector prior line odds ratio, can be NULL (in most general case includes both L and tL) |
useLogCorrection | include log-term correction or not |
LRstat_variant | which statistic variant to compute |
maxTwoF | multi-detector maximum Fstat over segments |
maxTwoFX | vector of single-detector maximum Fstats over segments |
numSegs | number of segments |
Definition at line 297 of file LineRobustStatsTest.c.
◆ XLALCheckBSGLDifferences()
◆ XLALCheckBSGLVectorFunctions()
int XLALCheckBSGLVectorFunctions |
( |
void |
| ) |
|
◆ main()