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_likelihood.h
Go to the documentation of this file.
1/*******************************************************************************
2 Matt Pitkin, Colin Gill, John Veitch - 2011
3
4 ppe_likelihood.h
5
6 Header file for ppe_likelihood.c
7
8*******************************************************************************/
9
10/*
11 Author:
12*/
13
14/**
15 * \file
16 * \ingroup lalpulsar_bin_HeterodyneSearch
17 * \author Matthew Pitkin, John Veitch, Colin Gill
18 *
19 * \brief Header file for the likelihood and prior functions used in parameter
20 * estimation code for known pulsar searches using the nested sampling
21 * algorithm.
22 */
23
24#ifndef _PPE_LIKELIHOOD_H
25#define _PPE_LIKELIHOOD_H
26
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33/* likelihood function */
37
38/* noise only likelihood */
40
41/* prior function */
45
46/* prior for latitude-like angle parameters */
47REAL8 theta_prior( REAL8 theta );
48
49/* check params are within prior range */
51
52/* convert nested samples to posterior samples */
54
55/* create kd-tree prior */
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif /* _PPE_LIKELIHOOD_H */
double REAL8
uint32_t UINT4
float data[BLOCKSIZE]
Definition: hwinject.c:360
void create_kdtree_prior(LALInferenceRunState *runState)
Create a k-d tree from prior samples.
REAL8 pulsar_log_likelihood(LALInferenceVariables *vars, LALInferenceIFOData *data, LALInferenceModel *get_pulsar_model)
The log likelihood function.
REAL8 noise_only_likelihood(LALInferenceRunState *runState)
Calculate the natural logarithm of the evidence that the data consists of only Gaussian noise The fun...
REAL8 priorFunction(LALInferenceRunState *runState, LALInferenceVariables *params, LALInferenceModel *mode)
void ns_to_posterior(LALInferenceRunState *runState)
Convert an array of nested samples to posterior samples.
REAL8 theta_prior(REAL8 theta)
Prior for angle that is equivalent to an latitude value to give a uniform prior on a sphere.
UINT4 in_range(LALInferenceVariables *priors, LALInferenceVariables *params)
Check that any parameters with minimum and maximum ranges are within that range.
void get_pulsar_model(LALInferenceModel *model)
Defines the pulsar model/template to use.
Definition: ppe_models.c:52
Header file for the parameter estimation code for known pulsar searches using the nested sampling alg...