Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALPulsar 7.1.1.1-b246709
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ppe_init.h
Go to the documentation of this file.
1/*
2* Copyright (C) 2014 Matthew Pitkin
3*
4* This program is free software; you can redistribute it and/or modify
5* it under the terms of the GNU General Public License as published by
6* the Free Software Foundation; either version 2 of the License, or
7* (at your option) any later version.
8*
9* This program is distributed in the hope that it will be useful,
10* but WITHOUT ANY WARRANTY; without even the implied warranty of
11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12* GNU General Public License for more details.
13*
14* You should have received a copy of the GNU General Public License
15* along with with program; see the file COPYING. If not, write to the
16* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17* MA 02110-1301 USA
18*/
19
20/**
21 * \file
22 * \ingroup lalpulsar_bin_HeterodyneSearch
23 * \author Matthew Pitkin, John Veitch, Colin Gill
24 *
25 * \brief Header file for the initialisation functions for the parameter estimation code for known pulsar
26 * searches using the nested sampling algorithm.
27 */
28
29#ifndef _PPE_INIT_H
30#define _PPE_INIT_H
31
33#include "ppe_models.h"
34#include "ppe_utils.h"
35#include "ppe_readdata.h"
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
44void setup_lookup_tables( LALInferenceRunState *runState, LALSource *source );
49 LALInferenceVariables *priors, REAL8Array *corMat,
50 LALStringVector *parMat );
51void sum_data( LALInferenceRunState *runState );
54REAL8Vector **parse_gmm_means( CHAR *meanstr, UINT4 npars, UINT4 nmodes );
55gsl_matrix **parse_gmm_covs( CHAR *covstr, UINT4 npars, UINT4 nmodes );
56CHAR *get_bracketed_string( CHAR *dest, const CHAR *bstr, int openbracket, int closebracket );
57void initialise_threads( LALInferenceRunState *state, INT4 nthreads );
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif /* _PPE_INIT_H */
char CHAR
uint32_t UINT4
int32_t INT4
CHAR * get_bracketed_string(CHAR *dest, const CHAR *bstr, int openbracket, int closebracket)
Definition: ppe_init.c:1700
void LogSampleToArray(LALInferenceVariables *algorithmParams, LALInferenceVariables *vars)
void initialise_proposal(LALInferenceRunState *runState)
Initialise the MCMC proposal distribution for sampling new points.
Definition: ppe_init.c:918
void add_correlation_matrix(LALInferenceVariables *ini, LALInferenceVariables *priors, REAL8Array *corMat, LALStringVector *parMat)
Adds a correlation matrix for a multi-variate Gaussian prior.
Definition: ppe_init.c:1012
void initialise_prior(LALInferenceRunState *runState)
Sets up the parameters to be searched over and their prior ranges.
Definition: ppe_init.c:620
void LogSampleToFile(LALInferenceVariables *algorithmParams, LALInferenceVariables *vars)
void sum_data(LALInferenceRunState *runState)
Calculates the sum of the square of the data and model terms.
Definition: ppe_init.c:1110
void add_initial_variables(LALInferenceVariables *ini, PulsarParameters *pars)
Set up all the allowed variables for a known pulsar search This functions sets up all possible variab...
Definition: ppe_init.c:386
void setup_lookup_tables(LALInferenceRunState *runState, LALSource *source)
Sets the time angle antenna response lookup table.
Definition: ppe_init.c:296
void initialise_threads(LALInferenceRunState *state, INT4 nthreads)
Definition: ppe_init.c:1719
void initialise_algorithm(LALInferenceRunState *runState)
Initialises the nested sampling algorithm control.
Definition: ppe_init.c:138
gsl_matrix ** parse_gmm_covs(CHAR *covstr, UINT4 npars, UINT4 nmodes)
Parse data from a prior file containing Gaussian Mixture Model covariance matrix values.
Definition: ppe_init.c:1608
void setup_live_points_array_wrapper(LALInferenceRunState *runState)
A wrapper around LALInferenceSetupLivePointsArray.
Definition: ppe_init.c:100
void nested_sampling_algorithm_wrapper(LALInferenceRunState *runState)
A wrapper around LALInferenceNestedSamplingAlgorithm.
Definition: ppe_init.c:57
REAL8Vector ** parse_gmm_means(CHAR *meanstr, UINT4 npars, UINT4 nmodes)
Parse data from a prior file containing Gaussian Mixture Model mean values.
Definition: ppe_init.c:1537
Header file for the signal models functions used in parameter estimation code for known pulsar search...
Header file for the data reading functions for the parameter estimation code for known pulsar searche...
Header file for the helper functions for the parameter estimation code for known pulsar searches usin...
Header file for the parameter estimation code for known pulsar searches using the nested sampling alg...
The PulsarParameters structure to contain a set of pulsar parameters.