#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <float.h>
#include <lal/LALStdlib.h>
#include <lal/LALDatatypes.h>
#include <lal/LALConstants.h>
#include <lal/LALDemod.h>
#include <lal/AVFactories.h>
#include <lalapps.h>
#include "getopt.h"
Include dependency graph for FstatShapeTestLAL.c:

Go to the source code of this file.
(2)Note: This is a LALAppsified version of the original code FstatShapeTest.c.
Purposes are to make this code more modular to prepare for a possible future functionization of ComputeFstatistic and for c-code-based search pipelines including MC experiments.
(3)Example: ./FstatShapeTestLAL -o FaFb00.001 -t FaFb01.001 > FST.txt
(4)Validation: Generate 10^5 signals of SNR = {2F} ranging from sqrt(20) to ~ 30 with a Gaussian stationary noise, run ComputeFStatistic with the threshold on 2F being 20. The code reported 789135 outliers that includes statistical disturbances. The resulting veto statistics by the original FstatShapeTest are consistent with those by this LALAppsified code with a relative difference of 6x10^-8.
Definition in file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_ENULL 1 |
Error code for Fstatistic shape test main part.
Definition at line 84 of file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_ENONULL 2 |
Definition at line 85 of file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_EFILEIO 3 |
Definition at line 86 of file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_EMEMORY 4 |
Definition at line 87 of file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_EODDDATA 5 |
Definition at line 88 of file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_MSGENULL "Input argument pointer is NULL." |
Definition at line 91 of file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_MSGENONULL "Output argument pointer is not NULL." |
Definition at line 92 of file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_MSGEFILIO "File I/O error." |
Definition at line 93 of file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_MSGEMEMORY "Memory allocation error." |
Definition at line 94 of file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_MSGEODDDATA "Strange data." |
Definition at line 95 of file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_EDATADOMAIN 6 |
Error code for ChiSquare distribution computation.
Definition at line 99 of file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_EPARAMDOMAIN 7 |
Definition at line 100 of file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_EINPUTDOMAIN 8 |
Definition at line 101 of file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_EDOFDOMAIN 9 |
Definition at line 102 of file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_MSGEDATADOMAIN "Data should be non-negative." |
Definition at line 105 of file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_MSGEPARAMDOMAIN "Parameter domain error." |
Definition at line 106 of file FstatShapeTestLAL.c.
Definition at line 107 of file FstatShapeTestLAL.c.
| #define FSTATSHAPETESTC_MSGEDOFDOMAIN "Degrees of freedom should be non-negative." |
Definition at line 108 of file FstatShapeTestLAL.c.
| typedef struct tagFSTControlParameters FSTControlParameters |
control parameters
| typedef struct tagFSTClustInfo FSTClustInfo |
Files headers information
| typedef struct tagFSTUserInput FSTUserInput |
User input Variables user can specify.
| typedef struct tagFSTFstatPair FSTFstatPair |
Frequency and Fa, Fb
| typedef struct tagFSTClustInfoPair FSTClustInfoPair |
pair of the cluster information of observed data and veto signal
| typedef struct tagFSTFVetoStat FSTFVetoStat |
resulting veto statistic
| RCSID | ( | "$Id: FstatShapeTestLAL. | c, | |
| v 1.16 2007/06/08 15:29:51 bema Exp $" | ||||
| ) |
Definition at line 206 of file FstatShapeTestLAL.c.
1.5.2