28#include <lal/GenerateInspiral.h>
29#include <lal/LALInference.h>
30#include <lal/FrequencySeries.h>
32#include <lal/StringInput.h>
33#include <lal/TimeSeries.h>
34#include <lal/LALInferenceNestedSampler.h>
35#include <lal/LALInferencePrior.h>
36#include <lal/LALInferenceReadData.h>
37#include <lal/LALInferenceLikelihood.h>
38#include <lal/LALInferenceTemplate.h>
39#include <lal/LALInferenceProposal.h>
40#include <lal/LALInferenceInit.h>
41#include <lal/LALInferenceReadBurstData.h>
42#include <lal/LALInferenceCalibrationErrors.h>
43#include <lal/GenerateBurst.h>
44#include <lal/LALSimBurst.h>
49int main(
int argc,
char *argv[]){
52 Bayesian analysis tool using Nested Sampling algorithm\n\
53 for Burst analysis. Uses LALInference library for back-end.\n\n\
54 Arguments for each section follow:\n\n";
84 fprintf(stdout,
"WARNING: Injecting a signal from MDC has not been carefully tested yet! \n");
118 fprintf(stderr,
"Must specify the approximant while using lalinference_burst\n");
ProcessParamsTable * LALInferenceParseCommandLine(int argc, char *argv[])
int main(int argc, char *argv[])
int XLALCheckBurstApproximantFromString(const CHAR *inString)
void LALInferenceApplyCalibrationErrors(LALInferenceIFOData *IFOdata, ProcessParamsTable *commandLine)
LALInferenceRunState * LALInferenceInitRunState(ProcessParamsTable *command_line)
void LALInferenceInitCBCThreads(LALInferenceRunState *run_state, INT4 nthreads)
void LALInferenceInitBurstThreads(LALInferenceRunState *run_state, INT4 nthreads)
void LALInferenceInjectInspiralSignal(LALInferenceIFOData *IFOdata, ProcessParamsTable *commandLine)
void LALInferenceAddVariable(LALInferenceVariables *vars, const char *name, const void *value, LALInferenceVariableType type, LALInferenceParamVaryType vary)
Add a variable named name to vars with initial value referenced by value.
ProcessParamsTable * LALInferenceGetProcParamVal(ProcessParamsTable *procparams, const char *name)
Returns the element of the process params table with "name".
@ LALINFERENCE_PARAM_FIXED
A parameter that is cyclic, such as an angle between 0 and 2pi.
void LALInferenceInitLikelihood(LALInferenceRunState *runState)
Initialisation function which reads runState->commaneLine and sets up the likelihood function accordi...
void LALInferenceNestedSamplingAlgorithm(LALInferenceRunState *runState)
NestedSamplingAlgorithm implements the nested sampling algorithm, see e.g.
INT4 LALInferenceNestedSamplingOneStep(LALInferenceRunState *runState)
A single iteration of the NS algorithm.
void LALInferenceSetupLivePointsArray(LALInferenceRunState *runState)
Setup the live points by calling runState->initVariables on each of them if it is specified.
void LALInferenceNestedSamplingAlgorithmInit(LALInferenceRunState *runState)
Initialise the nested sampling algorithm by reading from the commandLine and setting up algorithmPara...
void LALInferenceInitCBCPrior(LALInferenceRunState *runState)
Initialize the prior based on command line arguments.
void LALInferenceInitLIBPrior(LALInferenceRunState *runState)
Initialize the LIB prior based on command line arguments.
LALInferenceProposalCycle * LALInferenceSetupDefaultInspiralProposalCycle(LALInferenceVariables *propArgs)
A reasonable default proposal.
LALInferenceVariables * LALInferenceParseProposalArgs(LALInferenceRunState *runState)
Go through all logic for deciding proposals to use.
void LALInferenceRandomizeProposalCycle(LALInferenceProposalCycle *cycle, gsl_rng *rng)
Randomizes the order of the proposals in the proposal cycle.
void LALInferenceInjectBurstSignal(LALInferenceIFOData *IFOdata, ProcessParamsTable *commandLine)
Read IFO data according to command line arguments.
void LALInferenceInjectFromMDC(ProcessParamsTable *commandLine, LALInferenceIFOData *IFOdata)
Structure containing inference run state This includes pointers to the function types required to run...
ProcessParamsTable * commandLine
LALInferenceVariables * proposalArgs
The data from the interferometers.
LALInferenceVariables * algorithmParams
Any special arguments for the prior function.
INT4 nthreads
Array of live points for Nested Sampling.
struct tagLALInferenceIFOData * data
Log sample, i.e.
LALInferenceThreadState * threads
LALInferenceAlgorithm algorithm
A function that returns a new set of variables for the model.
LALInferenceEvolveOneStepFunction evolve
The algorithm function.
LALInferenceProposalCycle * cycle
The proposal cycle.
LALInferenceVariables * proposalArgs
CHAR value[LIGOMETA_VALUE_MAX]