23 #include <lal/ComputeFstat.h>
35 #define SQ(x) ( (x) * (x) )
37 #define MYMAX(x,y) ( (x) > (y) ? (x) : (y) )
38 #define MYMIN(x,y) ( (x) < (y) ? (x) : (y) )
41 #define likely(x) __builtin_expect(!!(x), 1)
42 #define unlikely(x) __builtin_expect(!!(x), 0)
45 #define unlikely(x) (x)
69 int ( *compute_func )(
72 void ( *method_data_destroy_func )(
void * );
73 void ( *workspace_destroy_func )(
void * );
81 REAL4 Fa_re = creal( Fa );
82 REAL4 Fa_im = cimag( Fa );
83 REAL4 Fb_re = creal( Fb );
84 REAL4 Fb_im = cimag( Fb );
87 if (
likely( Dinv > 0 ) ) {
88 twoF = 2.0f * Dinv * (
B * (
SQ( Fa_re ) +
SQ( Fa_im ) )
89 +
A * (
SQ( Fb_re ) +
SQ( Fb_im ) )
90 - 2.0 *
C * ( Fa_re * Fb_re + Fa_im * Fb_im )
91 - 2.0 * E * ( - Fa_re * Fb_im + Fa_im * Fb_re )
static REAL4 compute_fstat_from_fa_fb(COMPLEX8 Fa, COMPLEX8 Fb, REAL4 A, REAL4 B, REAL4 C, REAL4 E, REAL4 Dinv)
SSBprecision
The precision in calculating the barycentric transformation.
This structure contains all information about the center-of-mass positions of the Earth and Sun,...
MultiDetectorStateSeries * multiDetectorStates
const EphemerisData * ephemerides
REAL8 allowedMismatchFromSFTLength
MultiLALDetector detectors
MultiLIGOTimeGPSVector * multiTimestamps
MultiNoiseWeights * multiNoiseWeights
XLALComputeFstat() computed results structure.
Multi-IFO time-series of DetectorStates.
array of detectors definitions 'LALDetector'
A collection of (multi-IFO) LIGOTimeGPSVector time-stamps vectors.
One noise-weight (number) per SFT (therefore indexed over IFOs and SFTs.