Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALPulsar 7.1.1.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
PiecewiseModel.h
Go to the documentation of this file.
1//
2// Copyright (C) 2019--2023 Benjamin Grace
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#ifndef _PIECEWISEMODEL_H
21#define _PIECEWISEMODEL_H
22
23#include <stdio.h>
24#include <math.h>
25#include <lal/LatticeTiling.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31///
32/// Sets the bounds for the piecewise model
33///
35 LatticeTiling *tiling, ///< Lattice tiling
36 const size_t s, ///< Number of frequency/spindown parameters per knot
37 const double fmin, ///< Minimum initial frequency
38 const double fmax, ///< Maximum initial frequency
39 const double nmin, ///< Minimum braking index
40 const double nmax, ///< Maximum braking index
41 const double kmin, ///< Minimum k value
42 const double kmax, ///< Maximum k value
43 const gsl_vector *knots, ///< List of knots
44 const gsl_vector *bboxpad, ///< Vector containing fractional bounding box padding
45 const gsl_vector_int *intpad ///< Vector containing number of integer points to use for padding
46);
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif //_PIECEWISEMODEL_H
int XLALSetLatticeTilingPiecewiseBounds(LatticeTiling *tiling, const size_t s, const double fmin, const double fmax, const double nmin, const double nmax, const double kmin, const double kmax, const gsl_vector *knots, const gsl_vector *bboxpad, const gsl_vector_int *intpad)
Sets the bounds for the piecewise model.