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

Prototypes

static int SerialisationTest (const LatticeTiling UNUSED *tiling, const UINT8 UNUSED total_ref, const int UNUSED total_tol, const UINT8 UNUSED total_ckpt_0, const UINT8 UNUSED total_ckpt_1, const UINT8 UNUSED total_ckpt_2, const UINT8 UNUSED total_ckpt_3)
 
static int BasicTest (const size_t n, const int bound_on_0, const int bound_on_1, const int bound_on_2, const int bound_on_3, const TilingLattice lattice, const UINT8 total_ref_0, const UINT8 total_ref_1, const UINT8 total_ref_2, const UINT8 total_ref_3)
 
static int MismatchTest (const LatticeTiling *tiling, const gsl_matrix *metric, const double max_mismatch, const double injs_per_point, const double mism_hist_error_tol, const double mism_out_of_range_tol, const UINT8 total_ref, const int total_tol, const double mism_hist_ref[MISM_HIST_BINS])
 
static int MismatchSquareTest (const TilingLattice lattice, const double freqband, const double f1dotband, const double f2dotband, const UINT8 total_ref, const double mism_hist_ref[MISM_HIST_BINS])
 
static int MismatchAgeBrakeTest (const TilingLattice lattice, const double freq, const double freqband, const UINT8 total_ref, const double mism_hist_ref[MISM_HIST_BINS])
 
static int SuperskyTests (const UINT8 coh_total_ref_0, const UINT8 coh_total_ref_1, const UINT8 coh_total_ref_2, const UINT8 semi_total_ref)
 
static double LinearBound (const void *data, const size_t dim, const gsl_matrix *cache UNUSED, const gsl_vector *point)
 
static int StrictBoundaryTest (const double y_range)
 
int main (void)
 

Go to the source code of this file.

Macros

#define MISM_HIST_BINS   20
 
#define ABSDIFF(x, y)   (int)((x) > (y) ? ((x) - (y)) : ((y) - (x)))
 
#define A1s_mism_hist   Z1_mism_hist
 

Variables

const double Z1_mism_hist [MISM_HIST_BINS]
 
const double Z2_mism_hist [MISM_HIST_BINS]
 
const double Z3_mism_hist [MISM_HIST_BINS]
 
const double A2s_mism_hist [MISM_HIST_BINS]
 
const double A3s_mism_hist [MISM_HIST_BINS]
 
const double A4s_mism_hist [MISM_HIST_BINS]
 

Macro Definition Documentation

◆ MISM_HIST_BINS

#define MISM_HIST_BINS   20

Definition at line 40 of file LatticeTilingTest.c.

◆ ABSDIFF

#define ABSDIFF (   x,
  y 
)    (int)((x) > (y) ? ((x) - (y)) : ((y) - (x)))

Definition at line 43 of file LatticeTilingTest.c.

◆ A1s_mism_hist

#define A1s_mism_hist   Z1_mism_hist

Definition at line 63 of file LatticeTilingTest.c.

Function Documentation

◆ SerialisationTest()

static int SerialisationTest ( const LatticeTiling UNUSED *  tiling,
const UINT8 UNUSED  total_ref,
const int UNUSED  total_tol,
const UINT8 UNUSED  total_ckpt_0,
const UINT8 UNUSED  total_ckpt_1,
const UINT8 UNUSED  total_ckpt_2,
const UINT8 UNUSED  total_ckpt_3 
)
static

Definition at line 80 of file LatticeTilingTest.c.

◆ BasicTest()

static int BasicTest ( const size_t  n,
const int  bound_on_0,
const int  bound_on_1,
const int  bound_on_2,
const int  bound_on_3,
const TilingLattice  lattice,
const UINT8  total_ref_0,
const UINT8  total_ref_1,
const UINT8  total_ref_2,
const UINT8  total_ref_3 
)
static

Definition at line 174 of file LatticeTilingTest.c.

◆ MismatchTest()

static int MismatchTest ( const LatticeTiling *  tiling,
const gsl_matrix *  metric,
const double  max_mismatch,
const double  injs_per_point,
const double  mism_hist_error_tol,
const double  mism_out_of_range_tol,
const UINT8  total_ref,
const int  total_tol,
const double  mism_hist_ref[MISM_HIST_BINS] 
)
static

Definition at line 377 of file LatticeTilingTest.c.

◆ MismatchSquareTest()

static int MismatchSquareTest ( const TilingLattice  lattice,
const double  freqband,
const double  f1dotband,
const double  f2dotband,
const UINT8  total_ref,
const double  mism_hist_ref[MISM_HIST_BINS] 
)
static

Definition at line 531 of file LatticeTilingTest.c.

◆ MismatchAgeBrakeTest()

static int MismatchAgeBrakeTest ( const TilingLattice  lattice,
const double  freq,
const double  freqband,
const UINT8  total_ref,
const double  mism_hist_ref[MISM_HIST_BINS] 
)
static

Definition at line 586 of file LatticeTilingTest.c.

◆ SuperskyTests()

static int SuperskyTests ( const UINT8  coh_total_ref_0,
const UINT8  coh_total_ref_1,
const UINT8  coh_total_ref_2,
const UINT8  semi_total_ref 
)
static

Definition at line 638 of file LatticeTilingTest.c.

◆ LinearBound()

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

Definition at line 780 of file LatticeTilingTest.c.

◆ StrictBoundaryTest()

static int StrictBoundaryTest ( const double  y_range)
static

Definition at line 799 of file LatticeTilingTest.c.

◆ main()

int main ( void  )

Definition at line 857 of file LatticeTilingTest.c.

Variable Documentation

◆ Z1_mism_hist

const double Z1_mism_hist[MISM_HIST_BINS]
Initial value:
= {
4.531107, 1.870257, 1.430467, 1.202537, 1.057047, 0.953084, 0.875050, 0.813050, 0.762368, 0.719968,
0.683877, 0.652659, 0.625394, 0.601300, 0.579724, 0.560515, 0.542944, 0.527142, 0.512487, 0.499022
}

Definition at line 48 of file LatticeTilingTest.c.

◆ Z2_mism_hist

const double Z2_mism_hist[MISM_HIST_BINS]
Initial value:
= {
1.570963, 1.571131, 1.571074, 1.571102, 1.570808, 1.570789, 1.570617, 1.570716, 1.570671, 1.570867,
1.157132, 0.835785, 0.645424, 0.503305, 0.389690, 0.295014, 0.214022, 0.143584, 0.081427, 0.025878
}

Definition at line 53 of file LatticeTilingTest.c.

◆ Z3_mism_hist

const double Z3_mism_hist[MISM_HIST_BINS]
Initial value:
= {
0.608404, 1.112392, 1.440652, 1.705502, 1.934785, 2.139464, 2.296868, 2.071379, 1.748278, 1.443955,
1.155064, 0.879719, 0.616210, 0.375368, 0.223752, 0.131196, 0.071216, 0.033130, 0.011178, 0.001489
}

Definition at line 58 of file LatticeTilingTest.c.

◆ A2s_mism_hist

const double A2s_mism_hist[MISM_HIST_BINS]
Initial value:
= {
1.210152, 1.210142, 1.209837, 1.209697, 1.209368, 1.209214, 1.209399, 1.209170, 1.208805, 1.208681,
1.208631, 1.208914, 1.208775, 1.209021, 1.208797, 0.816672, 0.505394, 0.315665, 0.170942, 0.052727
}

Definition at line 65 of file LatticeTilingTest.c.

◆ A3s_mism_hist

const double A3s_mism_hist[MISM_HIST_BINS]
Initial value:
= {
0.327328, 0.598545, 0.774909, 0.917710, 1.040699, 1.150991, 1.250963, 1.344026, 1.431020, 1.512883,
1.590473, 1.664510, 1.595423, 1.391209, 1.194340, 1.004085, 0.729054, 0.371869, 0.098727, 0.011236
}

Definition at line 70 of file LatticeTilingTest.c.

◆ A4s_mism_hist

const double A4s_mism_hist[MISM_HIST_BINS]
Initial value:
= {
0.088295, 0.264916, 0.441209, 0.617937, 0.794537, 0.971005, 1.147715, 1.324035, 1.500356, 1.677569,
1.806866, 1.816272, 1.757854, 1.653638, 1.513900, 1.268203, 0.833153, 0.417934, 0.100320, 0.004287
}

Definition at line 75 of file LatticeTilingTest.c.