Loading [MathJax]/extensions/TeX/AMSsymbols.js
LAL 7.7.0.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
TriggerInterpolate.c File Reference

Prototypes

static void unwrap (double *arg, size_t n)
 
static void cabs_carg_unwrapped (double *amp, double *arg, const double complex *y, size_t n)
 
static size_t poly_strip (const double *a, size_t n)
 
static void poly_mac (double *y, const double *a, size_t na, const double *b, size_t nb)
 
static void poly_der (double *y, const double *a, size_t n)
 
static void poly_interp (double *a, const double y[4])
 
static int poly_real_roots (size_t *nroots, double *r, const double *a, size_t n)
 
static int poly_fit (double *a, size_t na, const double *x, const double *y, size_t n)
 
int XLALTriggerInterpolateCubicSpline (double *t, double complex *y, const double complex *data, unsigned int window)
 Catmull-Rom cubic spline interpolation. More...
 
int XLALTriggerInterpolateCubicSplineAmpPhase (double *t, double complex *y, const double complex *data, unsigned int window)
 Catmull-Rom cubic spline interpolation on amplitude phase. More...
 
static double lanczos (double t, double a)
 
static double complex lanczos_interpolant (double t, const lanczos_params *params)
 
static double lanczos_cost (double t, void *params)
 
int XLALTriggerInterpolateLanczos (double *tmax, double complex *ymax, const double complex *data, unsigned int window)
 Lanczos interpolation. More...
 
int XLALTriggerInterpolateNearestNeighbor (double *tmax, double complex *ymax, const double complex *data, __attribute__((unused)) unsigned int window)
 
int XLALTriggerInterpolateQuadraticFit (double *tmax, double complex *ymax, const double complex *data, unsigned int window)
 Quadratic fit. More...
 

Go to the source code of this file.

Data Structures

struct  lanczos_params
 

Macros

#define STRINGIZE(s)   #s
 
#define CUBIC_SPLINE_WINDOW_SIZE   2
 

Macro Definition Documentation

◆ STRINGIZE

#define STRINGIZE (   s)    #s

Definition at line 35 of file TriggerInterpolate.c.

◆ CUBIC_SPLINE_WINDOW_SIZE

#define CUBIC_SPLINE_WINDOW_SIZE   2

Definition at line 230 of file TriggerInterpolate.c.

Function Documentation

◆ unwrap()

static void unwrap ( double *  arg,
size_t  n 
)
static

Definition at line 44 of file TriggerInterpolate.c.

◆ cabs_carg_unwrapped()

static void cabs_carg_unwrapped ( double *  amp,
double *  arg,
const double complex *  y,
size_t  n 
)
static

Definition at line 63 of file TriggerInterpolate.c.

◆ poly_strip()

static size_t poly_strip ( const double *  a,
size_t  n 
)
static

Definition at line 77 of file TriggerInterpolate.c.

◆ poly_mac()

static void poly_mac ( double *  y,
const double *  a,
size_t  na,
const double *  b,
size_t  nb 
)
static

Definition at line 87 of file TriggerInterpolate.c.

◆ poly_der()

static void poly_der ( double *  y,
const double *  a,
size_t  n 
)
static

Definition at line 98 of file TriggerInterpolate.c.

◆ poly_interp()

static void poly_interp ( double *  a,
const double  y[4] 
)
static

Definition at line 106 of file TriggerInterpolate.c.

◆ poly_real_roots()

static int poly_real_roots ( size_t *  nroots,
double *  r,
const double *  a,
size_t  n 
)
static

Definition at line 123 of file TriggerInterpolate.c.

◆ poly_fit()

static int poly_fit ( double *  a,
size_t  na,
const double *  x,
const double *  y,
size_t  n 
)
static

Definition at line 174 of file TriggerInterpolate.c.

◆ lanczos()

static double lanczos ( double  t,
double  a 
)
static

Definition at line 399 of file TriggerInterpolate.c.

◆ lanczos_interpolant()

static double complex lanczos_interpolant ( double  t,
const lanczos_params params 
)
static

Definition at line 409 of file TriggerInterpolate.c.

◆ lanczos_cost()

static double lanczos_cost ( double  t,
void *  params 
)
static

Definition at line 419 of file TriggerInterpolate.c.

◆ XLALTriggerInterpolateNearestNeighbor()

int XLALTriggerInterpolateNearestNeighbor ( double *  tmax,
double complex *  ymax,
const double complex *  data,
__attribute__((unused)) unsigned int  window 
)

Definition at line 472 of file TriggerInterpolate.c.