7#include <lal/LALSimulation.h>
8#include <lal/LALSimBurst.h>
9#include <lal/TimeSeries.h>
12#define DELTA_T (1.0 / 16384)
13#define SIMLENGTH (16384 * 16)
14#define DSTLENGTH (16384 * 128)
15#define OFFSET 86.332874431
16#define REAL4THRESH .5e-6
17#define REAL8THRESH 1e-12
26 double abs_before, abs_after;
58 fprintf(stderr,
"%s(): square integral before = %.17g, square integral after = %.17g, fractional difference = %g\n", __func__, abs_before, abs_after, fabs(abs_after - abs_before) / abs_before);
59 return fabs(abs_after - abs_before) / abs_before >
REAL4THRESH;
68 double abs_before, abs_after;
96 fprintf(stderr,
"%s(): square integral before = %.17g, square integral after = %.17g, fractional difference = %g\n", __func__, abs_before, abs_after, fabs(abs_after - abs_before) / abs_before);
97 return fabs(abs_after - abs_before) / abs_before >
REAL8THRESH;
101int main(
int argc,
char *argv[])
int main(int argc, char *argv[])
static int TestXLALSimAddInjectionREAL4TimeSeries(void)
static int TestXLALSimAddInjectionREAL8TimeSeries(void)
REAL8 XLALMeasureIntS1S2DT(const REAL8TimeSeries *s1, const REAL8TimeSeries *s2)
Computes the integral of the product of two time series.
int XLALSimAddInjectionREAL4TimeSeries(REAL4TimeSeries *target, REAL4TimeSeries *h, const COMPLEX8FrequencySeries *response)
Adds a detector strain time series to detector data.
int XLALSimAddInjectionREAL8TimeSeries(REAL8TimeSeries *target, REAL8TimeSeries *h, const COMPLEX16FrequencySeries *response)
Adds a detector strain time series to detector data.
REAL4TimeSeries * XLALCreateREAL4TimeSeries(const CHAR *name, const LIGOTimeGPS *epoch, REAL8 f0, REAL8 deltaT, const LALUnit *sampleUnits, size_t length)
REAL8TimeSeries * XLALConvertREAL4TimeSeriesToREAL8(const REAL4TimeSeries *series)
void XLALDestroyREAL8TimeSeries(REAL8TimeSeries *series)
REAL8TimeSeries * XLALCreateREAL8TimeSeries(const CHAR *name, const LIGOTimeGPS *epoch, REAL8 f0, REAL8 deltaT, const LALUnit *sampleUnits, size_t length)
const LALUnit lalDimensionlessUnit
LIGOTimeGPS * XLALGPSAdd(LIGOTimeGPS *epoch, REAL8 dt)