Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALInference 4.1.9.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
LALInferenceInit.h
Go to the documentation of this file.
1/*
2 *
3 * LALInferenceInit.h: Initialisation functions for LALInference codes
4 *
5 * Copyright (C) 2009 Vivien Raymond and John Veitch
6 *
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with with program; see the file COPYING. If not, write to the
20 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21 * MA 02110-1301 USA
22 */
23
24/**
25 * \file LALInferenceInit.h
26 * \brief Header file for initialisation functions used by LALInference codes
27 *
28 */
29
30#ifndef LALInferenceInit_h
31#define LALInferenceInit_h
32
33#include <lal/LALInference.h>
34
35/* Initialize a bare-bones run-state. */
37
38/* Initialize threads in memory, using LALInferenceInitCBCModel() to init models. */
40/* Initialize threads in memory, using LALInferenceInitBurstModel() to init models. */
42/* Draw initial parameters for each of the threads in run state */
44
45/**
46 * Register a variable in vars for the model with given name, and a uniform prior.
47 * Use the min and max arguments to specify a default range
48 * Use startval to give a starting value. This is ignored unless the varytype==LALINFERENCE_PARAM_FIXED,
49 * in which case it will be used as the initial value of the variable, unless the user over-rides it on
50 * the command line (see below).
51 * varytype is a LALInferenceParamVaryType e.g. LALINFERENCE_PARAM_LINEAR, LALINFERENCE_PARAM_CIRCULAR
52 *
53 * The function will query the state->commandLine to read command line arguments
54 * of the form --name-min MINVAL --name-max MAXVAL to allow the user to over-ride
55 * the prior limits. The initial value can be given with --name FIXEDVAL
56 * If the --fix-name flag is given the variable will be pinned to that value
57 * by setting it as LALINFERENCE_PARAM_FIXED
58 * Note: The prior is setup in state->priorArgs, but it does not set state->currentParams
59 */
61
63
64
65/**
66 * Initialise state variables needed for LALInferenceNest or LALInferenceMCMC to run
67 * on a CBC signal. Reads the command line to get user-specified options
68 */
70
71/**
72 * Initialise state variables needed for LALInferenceNest or LALInferenceMCMC to run
73 * on a CBC signal. Reads the command line to get user-specified options
74 */
76
77
78/**
79 * Initialise the template for a standard CBC signal
80 */
82
83/**
84 * Initialise the template for a standard burst signal
85 */
87
88/**
89 Initialise the glitch fitting parameters
90 */
92
93/**
94 * Review functions
95 *
96 *
97 */
98
102
103/**
104 * Check options consistency
105 **/
107
109
110#endif
LALInferenceModel * LALInferenceInitCBCModel(LALInferenceRunState *state)
Initialise state variables needed for LALInferenceNest or LALInferenceMCMC to run on a CBC signal.
void LALInferenceCheckOptionsConsistency(ProcessParamsTable *commandLine)
Check options consistency.
void LALInferenceRegisterUniformVariableREAL8(LALInferenceRunState *state, LALInferenceVariables *var, const char *name, REAL8 startval, REAL8 min, REAL8 max, LALInferenceParamVaryType varytype)
Register a variable in vars for the model with given name, and a uniform prior.
LALInferenceTemplateFunction LALInferenceInitCBCTemplate(LALInferenceRunState *runState)
Initialise the template for a standard CBC signal.
LALInferenceModel * LALInferenceInitModelReviewEvidence_banana(LALInferenceRunState *state)
LALInferenceRunState * LALInferenceInitRunState(ProcessParamsTable *command_line)
void LALInferenceInitCBCThreads(LALInferenceRunState *run_state, INT4 nthreads)
LALInferenceModel * LALInferenceInitBurstModel(LALInferenceRunState *state)
Initialise state variables needed for LALInferenceNest or LALInferenceMCMC to run on a CBC signal.
void LALInferenceDrawThreads(LALInferenceRunState *run_state)
LALInferenceModel * LALInferenceInitModelReviewEvidence(LALInferenceRunState *state)
Review functions.
LALInferenceTemplateFunction LALInferenceInitBurstTemplate(LALInferenceRunState *runState)
Initialise the template for a standard burst signal.
void LALInferenceInitGlitchVariables(LALInferenceRunState *runState, LALInferenceVariables *currentParams)
Initialise the glitch fitting parameters.
void LALInferenceRegisterGaussianVariableREAL8(LALInferenceRunState *state, LALInferenceVariables *var, const char *name, REAL8 startval, REAL8 mean, REAL8 stdev, LALInferenceParamVaryType varytype)
void LALInferenceInitCalibrationVariables(LALInferenceRunState *runState, LALInferenceVariables *currentParams)
void LALInferenceInitBurstThreads(LALInferenceRunState *run_state, INT4 nthreads)
LALInferenceModel * LALInferenceInitModelReviewEvidence_bimod(LALInferenceRunState *state)
static REAL8 mean(REAL8 *array, int N)
#define max(a, b)
LALInferenceVariables currentParams
double REAL8
int32_t INT4
LALInferenceParamVaryType
An enumerated type for denoting the topology of a parameter.
Definition: LALInference.h:127
void(* LALInferenceTemplateFunction)(struct tagLALInferenceModel *model)
Type declaration for template function, which operates on a LALInferenceIFOData structure *data.
Definition: LALInference.h:377
Structure to constain a model and its parameters.
Definition: LALInference.h:436
Structure containing inference run state This includes pointers to the function types required to run...
Definition: LALInference.h:592
The LALInferenceVariables structure to contain a set of parameters Implemented as a linked list of LA...
Definition: LALInference.h:170