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_utils.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 helper functions for the parameter estimation code for known pulsar
26 * searches using the nested sampling algorithm.
27 */
28
29#ifndef _PPE_UTILS_H
30#define _PPE_UTILS_H
31
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
40
41/* functions for finding change points in the data */
43UINT4Vector *chop_n_merge( LALInferenceIFOData *data, UINT4 chunkMin, UINT4 chunkMax, UINT4 outputchunks );
44UINT4Vector *chop_data( gsl_vector_complex *data, UINT4 chunkMin );
45UINT4 find_change_point( gsl_vector_complex *data, REAL8 *logodds, UINT4 chunkMin );
46void rechop_data( UINT4Vector **segs, UINT4 chunkMax, UINT4 chunkMin );
48
49INT4 count_csv( CHAR *csvline );
51
53 CHAR **tfile,
55 INT4 gpsstart, INT4 gpsend );
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* _PPE_UTILS_H */
const char * name
Definition: SearchTiming.c:93
TimeCorrectionType
Enumerated type denoting the time system type to be produced in the solar system barycentring routine...
Definition: LALBarycenter.h:72
double REAL8
char CHAR
uint32_t UINT4
int32_t INT4
LALInferenceVariableType
float data[BLOCKSIZE]
Definition: hwinject.c:360
void check_and_add_fixed_variable(LALInferenceVariables *vars, const char *name, void *value, LALInferenceVariableType type)
Add a variable, checking first if it already exists and is of type LALINFERENCE_PARAM_FIXED and if so...
Definition: ppe_utils.c:778
UINT4Vector * chop_data(gsl_vector_complex *data, UINT4 chunkMin)
Chops the data into stationary segments based on Bayesian change point analysis.
Definition: ppe_utils.c:352
void rechop_data(UINT4Vector **segs, UINT4 chunkMax, UINT4 chunkMin)
Chop up the data into chunks smaller the the maximum allowed length.
Definition: ppe_utils.c:518
void compute_variance(LALInferenceIFOData *data, LALInferenceIFOModel *model)
Compute the noise variance for each data segment.
Definition: ppe_utils.c:38
void merge_data(COMPLEX16Vector *data, UINT4Vector **segs)
Merge adjacent segments.
Definition: ppe_utils.c:591
UINT4 find_change_point(gsl_vector_complex *data, REAL8 *logodds, UINT4 chunkMin)
Find a change point in complex data.
Definition: ppe_utils.c:428
UINT4Vector * get_chunk_lengths(LALInferenceIFOModel *ifo, UINT4 chunkMax)
Split the data into segments.
Definition: ppe_utils.c:98
TimeCorrectionType XLALAutoSetEphemerisFiles(CHAR **efile, CHAR **sfile, CHAR **tfile, PulsarParameters *pulsar, INT4 gpsstart, INT4 gpsend)
Automatically set the solar system ephemeris file based on environment variables and data time span.
Definition: ppe_utils.c:717
UINT4Vector * chop_n_merge(LALInferenceIFOData *data, UINT4 chunkMin, UINT4 chunkMax, UINT4 outputchunks)
Chops and remerges data into stationary segments.
Definition: ppe_utils.c:177
COMPLEX16Vector * subtract_running_median(COMPLEX16Vector *data)
Subtract the running median from complex data.
Definition: ppe_utils.c:268
INT4 count_csv(CHAR *csvline)
Counts the number of comma separated values in a string.
Definition: ppe_utils.c:674
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.