Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALPulsar 7.1.1.1-8a6b96f
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ppe_testing.h
Go to the documentation of this file.
1/* ******************************************************************************
2 Matt Pitkin - 2011
3
4 ppe_testing.h
5
6 Header file for ppe_testing.c
7
8*******************************************************************************/
9
10/*
11 Author:
12*/
13
14/**
15 * \file
16 * \ingroup lalpulsar_bin_HeterodyneSearch
17 * \author Matthew Pitkin
18 *
19 * \brief Header file for functions used in testing the parameter
20 * estimation code for known pulsar searches using the nested sampling
21 * algorithm.
22 */
23
24#ifndef _PPE_TESTING_H
25#define _PPE_TESTING_H
26
28#include "ppe_utils.h"
29
30#include <gsl/gsl_roots.h>
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36/**
37 * The usage format for the test case of performing the analysis on a
38 * one-dimensional grid.
39 */
40#define USAGEGRID \
41"Usage: %s [options]\n\n"\
42" --grid perform the posterior evalution on a 1D grid over the\n\
43 parameter given by --gridpar\n"\
44" --gridpar The parameter over which to perform the 1D posterior\n\
45 evaluation\n"\
46" --gridmin The lower end of the range over which to evaluate the\n\
47 paramter given by --gridpar\n"\
48" --gridmax The upper end of the range over which to evaluate the\n\
49 paramter given by --gridpar\n"\
50" --gridsteps The number of points in the grid\n"\
51"\n"
52
53/* testing functions */
54void gridOutput( LALInferenceRunState *runState );
55
58 LALInferenceModel *get_model );
59
61
63
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif /* _PPE_TESTING_H */
double REAL8
float data[BLOCKSIZE]
Definition: hwinject.c:360
void test_gaussian_output(LALInferenceRunState *runState)
Output the analytic evidence for the test Gaussian likelihood and a 95% upper limit.
Definition: ppe_testing.c:245
REAL8 test_gaussian_log_likelihood(LALInferenceVariables *vars, LALInferenceIFOData *data, LALInferenceModel *get_model)
Test the sampler using a Gaussian likelihood.
Definition: ppe_testing.c:209
void compare_likelihoods(LALInferenceRunState *rs)
Read in an ascii text file of nested samples and compare the log likelihoods.
Definition: ppe_testing.c:450
void outputPriorSamples(LALInferenceRunState *runState)
Output a number of prior samples based on the initial live points.
Definition: ppe_testing.c:385
void gridOutput(LALInferenceRunState *runState)
A test function to calculate a 1D posterior on a grid.
Definition: ppe_testing.c:51
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...