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.c File Reference

Prototypes

static double GTEAndDerivs (double f0, double n, double k, double t, int d)
 The general torque equation and its first two derivatives. More...
 
static double F0Bound (const void *data, const size_t dim UNUSED, const gsl_matrix *cache UNUSED, const gsl_vector *point)
 Sets the bound on the frequency parameter. More...
 
static double F1Bound (const void *data, const size_t dim UNUSED, const gsl_matrix *cache UNUSED, const gsl_vector *point)
 Sets the bound on the first derivative frequency parameter. More...
 
static double F2Bound (const void *data, const size_t dim UNUSED, const gsl_matrix *cache UNUSED, const gsl_vector *point)
 Sets the bounds on the second derivative frequency parameter. More...
 
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. More...
 

Go to the source code of this file.

Data Structures

struct  PiecewiseBoundInfo
 A struct containing the relevant information for calculating upper and lower bounds on a specific piecewise segment. More...
 

Function Documentation

◆ GTEAndDerivs()

static double GTEAndDerivs ( double  f0,
double  n,
double  k,
double  t,
int  d 
)
static

The general torque equation and its first two derivatives.

Parameters
f0Initial frequency
nBraking index
kk value
tTime at which to evaluate the GTE
dDerivative order (d <= 2)

Definition at line 45 of file PiecewiseModel.c.

◆ F0Bound()

static double F0Bound ( const void *  data,
const size_t dim  UNUSED,
const gsl_matrix *cache  UNUSED,
const gsl_vector *  point 
)
static

Sets the bound on the frequency parameter.

Definition at line 73 of file PiecewiseModel.c.

◆ F1Bound()

static double F1Bound ( const void *  data,
const size_t dim  UNUSED,
const gsl_matrix *cache  UNUSED,
const gsl_vector *  point 
)
static

Sets the bound on the first derivative frequency parameter.

Definition at line 98 of file PiecewiseModel.c.

◆ F2Bound()

static double F2Bound ( const void *  data,
const size_t dim  UNUSED,
const gsl_matrix *cache  UNUSED,
const gsl_vector *  point 
)
static

Sets the bounds on the second derivative frequency parameter.

Definition at line 120 of file PiecewiseModel.c.

◆ XLALSetLatticeTilingPiecewiseBounds()

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.

Parameters
tilingLattice tiling
sNumber of frequency/spindown parameters per knot
fminMinimum initial frequency
fmaxMaximum initial frequency
nminMinimum braking index
nmaxMaximum braking index
kminMinimum k value
kmaxMaximum k value
knotsList of knots
bboxpadVector containing fractional bounding box padding
intpadVector containing number of integer points to use for padding

Definition at line 142 of file PiecewiseModel.c.