31 #include <lal/LineRobustStats.h>
32 #include <lal/StringVector.h>
33 #include <lal/UserInput.h>
77 #define WEAVE_STATISTIC_NAME(ws) WeaveStatisticNamesByIndex[XLAL_BIT2IDX(ws)]
190 WeaveStatisticsParams *statistics_params,
197 WeaveStatisticsParams *statistics_params
enum tagWeaveStatisticType WeaveStatisticType
const char *const WeaveStatisticNamesByIndex[XLAL_BIT2IDX(WEAVE_STATISTIC_MAX)]
int XLALWeaveStatisticsParamsSetDependencyMap(WeaveStatisticsParams *statistics_params, const WeaveStatisticType toplist_stats, const WeaveStatisticType extra_output_stats, const WeaveStatisticType recalc_stats)
Fill StatisticsParams logic for given toplist and extra-output stats.
tagWeaveStatisticType
Bitflags representing all possible statistics that can be computed or returned by Weave.
@ WEAVE_STATISTIC_MEAN2F_DET
Per detector average F-statistic.
@ WEAVE_STATISTIC_COH2F
Per segment multi-detector F-statistic.
@ WEAVE_STATISTIC_NCOUNT_DET
Hough number count per detector.
@ WEAVE_STATISTIC_COH2F_DET
Per segment per-detector F-statistic.
@ WEAVE_STATISTIC_BtSGLtL
(transient-)line robust log10(B_tS/GLtL) statistic
@ WEAVE_STATISTIC_SUM2F_DET
Per detector sum F-statistic.
@ WEAVE_STATISTIC_MAX
Marker +1 of maximal combined valid statistics value.
@ WEAVE_STATISTIC_MAX2F_DET
@ WEAVE_STATISTIC_MEAN2F
Multi-detector average (over segments) F-statistic.
@ WEAVE_STATISTIC_BSGLtL
(transient-)line robust log10(B_S/GLtL) statistic
@ WEAVE_STATISTIC_BSGL
Line-robust log10(B_S/GL) statistic.
@ WEAVE_STATISTIC_NCOUNT
Hough number count.
@ WEAVE_STATISTIC_SUM2F
Multi-detector sum (over segments) F-statistic.
int XLALWeaveStatisticsSetDirectDependencies(WeaveStatisticType *deps, const WeaveStatisticType stats)
Set all bits in 'deps' corresponding to direct dependencies of the set of input statistics 'stat'.
const char *const WeaveToplistHelpString
User input help string for toplist ranking statistics.
const UserChoices WeaveToplistChoices
User input choices for toplist ranking statistics.
const char *const WeaveStatisticHelpString
User input help string for all supported statistics.
const UserChoices WeaveStatisticChoices
User input choices for all supported statistics.
void XLALWeaveStatisticsParamsDestroy(WeaveStatisticsParams *statistics_params)
Destroy a StatisticsParams struct.
#define PULSAR_MAX_DETECTORS
maximal number of detectors we can handle (for static arrays of detector quantities)
Struct holding all parameters and status values for computing various statistics.
UINT4 n2F_det[PULSAR_MAX_DETECTORS]
Number of per-detector F-statistics.
WeaveStatisticType all_statistics_to_compute
Bitflag: full set of all statistics we'll need to compute (toplist + extra + recalc + all dependencie...
REAL4 nc_2Fth
Per-segment 2F threshold for computing 'Hough' number counts.
BSGLSetup * BSGL_setup
Setup for line-robust B_*S/GL* family of statistics.
WeaveStatisticType toplist_statistics
-------— statistics dependency map Bitflag: set of toplist-ranking statistics
WeaveCohResults * coh_res
Temporary 'workspace' storage for recalc'ed coherent 2F results over segments.
WeaveStatisticType mainloop_statistics
Bitflag: set of "main-loop" statistics that need to be computed on the semi-coherent "fine" grid.
WeaveStatisticType mainloop_statistics_to_keep
Bitflag: subset of "main-loop" statistics to keep around after mainloop: either because 1) needed for...
WeaveCohInput ** coh_input
Array of coherent setups over segments for 'stage 0' = main-loop calculation of 2F value over segment...
WeaveStatisticType statistics_to_output[2]
Bitflag: full set of statistics requested for output. [0] = 'stage0' = toplist + extra-statistics,...
WeaveStatisticType completionloop_statistics[2]
Bitflag: set of "completion-loop" statistics that will be computed only on the final toplist [0] = 's...
LALStringVector * detectors
-------— elements describing output statistics [read/write from fits files] List of detector names
LIGOTimeGPS ref_time
-------— input parameters for various statistics Reference time for phase-evolution parameters
UINT4 ntoplists
--— derived from the above: for internal use only [wont read/write these from fits files]
UINT4 nsegments
Number of segments.
WeaveCohInput ** coh_input_recalc
Array of coherent setups over segments for 'stage 1' = recalc calculation of 2F value over segments.
REAL4 mean2F_det[PULSAR_MAX_DETECTORS]
Mean per-detector F-statistic (only needed for per-detector output)
REAL4 log10BtSGLtL
Transient- signal and line robust log10(B_tS/GLtL) statistic.
REAL4 max2F_det[PULSAR_MAX_DETECTORS]
Maximized-over-segments per-detector F-statistic.
REAL4 sum2F_det[PULSAR_MAX_DETECTORS]
Summed per-detector F-statistic (only needed for per-detector output)
REAL4 log10BSGL
Line-robust log10(B_S/GL) statistic.
REAL4 max2F
Maximized-over-segments multi-detector F-statistic.
REAL4 sum2F
Summed multi-detector F-statistic.
REAL4 log10BSGLtL
Line- and transient-line robust log10(B_S/GLtL) statistic.
REAL4 * coh2F_det[PULSAR_MAX_DETECTORS]
Coherent per-detector F-statistics (only needed for per-detector and per-segment output)
REAL4 ncount
'Hough' multi-detector number count statistic
REAL4 * coh2F
Coherent multi-detector F-statistics (only needed for per-segment output)
REAL4 mean2F
Mean multi-detector F-statistic.
REAL4 ncount_det[PULSAR_MAX_DETECTORS]
'Hough' per-detector number count statistic