LAL  7.5.0.1-88f40e2
WindowTest.c File Reference

Prototypes

static int create_single_windows (REAL4Window **windows, int length, double kaiser_beta, double creighton_beta, double tukey_beta, double gauss_beta)
 
static void free_single_windows (REAL4Window **windows)
 
static int create_double_windows (REAL8Window **windows, int length, double kaiser_beta, double creighton_beta, double tukey_beta, double gauss_beta)
 
static void free_double_windows (REAL8Window **windows)
 
static double fractional_difference (double a, double b)
 
static int _test_sum_of_squares (const double *correct, int length, double kaiser_beta, double creighton_beta, double tukey_beta, double gauss_beta)
 
static int test_sum_of_squares (void)
 
static int _test_end_and_midpoints (int length, double kaiser_beta, double creighton_beta, double tukey_beta, double gauss_beta)
 
static int test_end_and_midpoints (void)
 
static int test_parameter_safety (void)
 
static void _display (int n, double kaiser_beta, double creighton_beta, double tukey_beta, double gauss_beta)
 
static void display (void)
 
int main (void)
 

Go to the source code of this file.

Macros

#define NWINDOWS   12
 

Variables

const char * names []
 

Macro Definition Documentation

◆ NWINDOWS

#define NWINDOWS   12

Definition at line 31 of file WindowTest.c.

Function Documentation

◆ create_single_windows()

static int create_single_windows ( REAL4Window **  windows,
int  length,
double  kaiser_beta,
double  creighton_beta,
double  tukey_beta,
double  gauss_beta 
)
static

Definition at line 49 of file WindowTest.c.

◆ free_single_windows()

static void free_single_windows ( REAL4Window **  windows)
static

Definition at line 77 of file WindowTest.c.

◆ create_double_windows()

static int create_double_windows ( REAL8Window **  windows,
int  length,
double  kaiser_beta,
double  creighton_beta,
double  tukey_beta,
double  gauss_beta 
)
static

Definition at line 85 of file WindowTest.c.

◆ free_double_windows()

static void free_double_windows ( REAL8Window **  windows)
static

Definition at line 113 of file WindowTest.c.

◆ fractional_difference()

static double fractional_difference ( double  a,
double  b 
)
static

Definition at line 121 of file WindowTest.c.

◆ _test_sum_of_squares()

static int _test_sum_of_squares ( const double *  correct,
int  length,
double  kaiser_beta,
double  creighton_beta,
double  tukey_beta,
double  gauss_beta 
)
static

Definition at line 139 of file WindowTest.c.

◆ test_sum_of_squares()

static int test_sum_of_squares ( void  )
static

Definition at line 168 of file WindowTest.c.

◆ _test_end_and_midpoints()

static int _test_end_and_midpoints ( int  length,
double  kaiser_beta,
double  creighton_beta,
double  tukey_beta,
double  gauss_beta 
)
static

Definition at line 213 of file WindowTest.c.

◆ test_end_and_midpoints()

static int test_end_and_midpoints ( void  )
static

Definition at line 297 of file WindowTest.c.

◆ test_parameter_safety()

static int test_parameter_safety ( void  )
static

Definition at line 335 of file WindowTest.c.

◆ _display()

static void _display ( int  n,
double  kaiser_beta,
double  creighton_beta,
double  tukey_beta,
double  gauss_beta 
)
static

Definition at line 420 of file WindowTest.c.

◆ display()

static void display ( void  )
static

Definition at line 475 of file WindowTest.c.

◆ main()

int main ( void  )

Definition at line 498 of file WindowTest.c.

Variable Documentation

◆ names

const char* names[]
Initial value:
= {
"rectangular",
"Hann",
"Welch",
"Bartlett",
"Parzen",
"Papoulis",
"Hamming",
"Kaiser",
"Creighton",
"Tukey",
"Gauss",
"Lanczos"
}

Definition at line 34 of file WindowTest.c.