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

Prototypes

COMPLEX16 DirichletKernelLargeN (const REAL8 delta)
 Compute the Dirichlet kernel for large N values. More...
 
COMPLEX16 DirichletKernelLargeNHann (const REAL8 delta)
 Compute the Dirichlet kernel for large N values and the Hann window. More...
 
INT4 DirichletKernalLargeNHannRatio (COMPLEX8 *ratio, const REAL4 delta0, const REAL4 delta1, const REAL4 scaling)
 Compute the argument of the ratio of Dirichlet kernels for large N values and the Hann window. More...
 
REAL8 twospect_small (REAL8 q)
 
REAL8 twospect_intermediate (REAL8 r)
 
REAL8 twospect_tail (REAL8 r)
 
REAL8 rat_eval (const REAL8 a[], const size_t na, const REAL8 b[], const size_t nb, const REAL8 x)
 
REAL8 ran_gamma_pdf (REAL8 x, REAL8 a, REAL8 b)
 
REAL8 matlab_gamma_inc (REAL8 x, REAL8 a, INT4 upper)
 
INT4 sf_gamma_inc_P (REAL8 *out, REAL8 a, REAL8 x)
 
INT4 sf_gamma_inc_Q (REAL8 *out, REAL8 a, REAL8 x)
 
INT4 gamma_inc_P_series (REAL8 *out, REAL8 a, REAL8 x)
 
INT4 gamma_inc_Q_series (REAL8 *out, REAL8 a, REAL8 x)
 
REAL8 twospect_cheb_eval (const cheb_series *cs, REAL8 x)
 
INT4 gamma_inc_D (REAL8 *out, REAL8 a, REAL8 x)
 
INT4 twospect_sf_gammastar (REAL8 *out, REAL8 x)
 
REAL8 gammastar_ser (REAL8 x)
 
REAL8 sf_exprel_n_CF (REAL8 N, REAL8 x)
 
REAL8 gamma_inc_Q_asymp_unif (REAL8 a, REAL8 x)
 
INT4 gamma_inc_Q_CF (REAL8 *out, REAL8 a, REAL8 x)
 
INT4 gamma_inc_F_CF (REAL8 *out, REAL8 a, REAL8 x)
 
REAL8 gamma_inc_Q_large_x (REAL8 a, REAL8 x)
 
REAL8 epsval (REAL8 val)
 
REAL4 epsval_float (REAL4 val)
 
void sumseries (REAL8 *computedprob, REAL8 P, REAL8 C, REAL8 E, INT8 counter, REAL8 x, REAL8 dof, REAL8 halfdelta, REAL8 err, INT4 countdown)
 
void sumseries_eg (REAL8 *computedprob, REAL8 P, REAL8 C, REAL8 E, INT8 counter, REAL8 x, REAL8 dof, REAL8 halfdelta, REAL8 err, INT4 countdown)
 
REAL8 binodeviance (REAL8 x, REAL8 np)
 

Go to the source code of this file.

Variables

static REAL8 gstar_a_data [30]
 
static cheb_series gstar_a_cs
 
static REAL8 gstar_b_data []
 
static cheb_series gstar_b_cs
 

Function Documentation

◆ DirichletKernelLargeN()

COMPLEX16 DirichletKernelLargeN ( const REAL8  delta)

Compute the Dirichlet kernel for large N values.

Parameters
[in]deltaThe delta value as the arguement
Returns
Complex valued Dirichlet kernel

Definition at line 35 of file TwoSpectSpecFunc.c.

◆ DirichletKernelLargeNHann()

COMPLEX16 DirichletKernelLargeNHann ( const REAL8  delta)

Compute the Dirichlet kernel for large N values and the Hann window.

Parameters
[in]deltaThe delta value as the arguement
Returns
Complex valued Dirichlet kernel

Definition at line 50 of file TwoSpectSpecFunc.c.

◆ DirichletKernalLargeNHannRatio()

INT4 DirichletKernalLargeNHannRatio ( COMPLEX8 ratio,
const REAL4  delta0,
const REAL4  delta1,
const REAL4  scaling 
)

Compute the argument of the ratio of Dirichlet kernels for large N values and the Hann window.

Parameters
[out]ratioThe complex ratio
[in]delta0The delta0 value (denominator)
[in]delta1The delta1 value (numerator)
[in]scalingThe real-valued scaling
Returns
Error code: 0 = no error, 1 = divergent value

Definition at line 70 of file TwoSpectSpecFunc.c.

◆ twospect_small()

REAL8 twospect_small ( REAL8  q)

Definition at line 186 of file TwoSpectSpecFunc.c.

◆ twospect_intermediate()

REAL8 twospect_intermediate ( REAL8  r)

Definition at line 206 of file TwoSpectSpecFunc.c.

◆ twospect_tail()

REAL8 twospect_tail ( REAL8  r)

Definition at line 224 of file TwoSpectSpecFunc.c.

◆ rat_eval()

REAL8 rat_eval ( const REAL8  a[],
const size_t  na,
const REAL8  b[],
const size_t  nb,
const REAL8  x 
)

Definition at line 242 of file TwoSpectSpecFunc.c.

◆ ran_gamma_pdf()

REAL8 ran_gamma_pdf ( REAL8  x,
REAL8  a,
REAL8  b 
)

Definition at line 264 of file TwoSpectSpecFunc.c.

◆ matlab_gamma_inc()

REAL8 matlab_gamma_inc ( REAL8  x,
REAL8  a,
INT4  upper 
)

Definition at line 280 of file TwoSpectSpecFunc.c.

◆ sf_gamma_inc_P()

INT4 sf_gamma_inc_P ( REAL8 out,
REAL8  a,
REAL8  x 
)

Definition at line 350 of file TwoSpectSpecFunc.c.

◆ sf_gamma_inc_Q()

INT4 sf_gamma_inc_Q ( REAL8 out,
REAL8  a,
REAL8  x 
)

Definition at line 395 of file TwoSpectSpecFunc.c.

◆ gamma_inc_P_series()

INT4 gamma_inc_P_series ( REAL8 out,
REAL8  a,
REAL8  x 
)

Definition at line 461 of file TwoSpectSpecFunc.c.

◆ gamma_inc_Q_series()

INT4 gamma_inc_Q_series ( REAL8 out,
REAL8  a,
REAL8  x 
)

Definition at line 523 of file TwoSpectSpecFunc.c.

◆ twospect_cheb_eval()

REAL8 twospect_cheb_eval ( const cheb_series *  cs,
REAL8  x 
)

Definition at line 622 of file TwoSpectSpecFunc.c.

◆ gamma_inc_D()

INT4 gamma_inc_D ( REAL8 out,
REAL8  a,
REAL8  x 
)

Definition at line 645 of file TwoSpectSpecFunc.c.

◆ twospect_sf_gammastar()

INT4 twospect_sf_gammastar ( REAL8 out,
REAL8  x 
)

Definition at line 671 of file TwoSpectSpecFunc.c.

◆ gammastar_ser()

REAL8 gammastar_ser ( REAL8  x)

Definition at line 703 of file TwoSpectSpecFunc.c.

◆ sf_exprel_n_CF()

REAL8 sf_exprel_n_CF ( REAL8  N,
REAL8  x 
)

Definition at line 721 of file TwoSpectSpecFunc.c.

◆ gamma_inc_Q_asymp_unif()

REAL8 gamma_inc_Q_asymp_unif ( REAL8  a,
REAL8  x 
)

Definition at line 788 of file TwoSpectSpecFunc.c.

◆ gamma_inc_Q_CF()

INT4 gamma_inc_Q_CF ( REAL8 out,
REAL8  a,
REAL8  x 
)

Definition at line 817 of file TwoSpectSpecFunc.c.

◆ gamma_inc_F_CF()

INT4 gamma_inc_F_CF ( REAL8 out,
REAL8  a,
REAL8  x 
)

Definition at line 828 of file TwoSpectSpecFunc.c.

◆ gamma_inc_Q_large_x()

REAL8 gamma_inc_Q_large_x ( REAL8  a,
REAL8  x 
)

Definition at line 873 of file TwoSpectSpecFunc.c.

◆ epsval()

REAL8 epsval ( REAL8  val)

Definition at line 902 of file TwoSpectSpecFunc.c.

◆ epsval_float()

REAL4 epsval_float ( REAL4  val)

Definition at line 913 of file TwoSpectSpecFunc.c.

◆ sumseries()

void sumseries ( REAL8 computedprob,
REAL8  P,
REAL8  C,
REAL8  E,
INT8  counter,
REAL8  x,
REAL8  dof,
REAL8  halfdelta,
REAL8  err,
INT4  countdown 
)

Definition at line 923 of file TwoSpectSpecFunc.c.

◆ sumseries_eg()

void sumseries_eg ( REAL8 computedprob,
REAL8  P,
REAL8  C,
REAL8  E,
INT8  counter,
REAL8  x,
REAL8  dof,
REAL8  halfdelta,
REAL8  err,
INT4  countdown 
)

Definition at line 977 of file TwoSpectSpecFunc.c.

◆ binodeviance()

REAL8 binodeviance ( REAL8  x,
REAL8  np 
)

Definition at line 1034 of file TwoSpectSpecFunc.c.

Variable Documentation

◆ gstar_a_data

REAL8 gstar_a_data[30]
static

Definition at line 105 of file TwoSpectSpecFunc.c.

◆ gstar_a_cs

cheb_series gstar_a_cs
static
Initial value:
= {
29,
-1, 1,
17
}
static REAL8 gstar_a_data[30]

Definition at line 137 of file TwoSpectSpecFunc.c.

◆ gstar_b_data

REAL8 gstar_b_data[]
static

Definition at line 146 of file TwoSpectSpecFunc.c.

◆ gstar_b_cs

cheb_series gstar_b_cs
static
Initial value:
= {
29,
-1, 1,
18
}
static REAL8 gstar_b_data[]

Definition at line 178 of file TwoSpectSpecFunc.c.