LAL  7.5.0.1-89842e6

Program to test running median function. More...

Detailed Description

Program to test running median function.

Author
B. Machenschalk

Usage

LALRunningMedianTest [length blocksize [lalDebugLevel]]
#define lalDebugLevel
Definition: LALDebugLevel.h:58

Description

This program test the LALRunningMedian functions First the proper function of the input checks is tested. Then it reads an array size and a block size from the command line, fills an array of the given size with random numbers, computes medians of all blocks with blocksize using the LALRunningMedian functions and compares the results against inividually calculated medians. The test is repeated with blocksize - 1 (to check for even/odd errors). The default values for array length and window width are 1024 and 512. If a value for lalDebugLevel is given, the program outputs the values of the input and median arrays to files, using the PrintVector functions from the support package.

Definition in file LALRunningMedianTest.c.

Go to the source code of this file.

Macros

Error Codes
#define LALRUNNINGMEDIANTESTC_ENOM   0
 Nominal exit. More...
 
#define LALRUNNINGMEDIANTESTC_EARG   1
 Error parsing command-line arguments. More...
 
#define LALRUNNINGMEDIANTESTC_ESUB   2
 Subroutine returned error. More...
 
#define LALRUNNINGMEDIANTESTC_EALOC   3
 Could not allocate data space. More...
 
#define LALRUNNINGMEDIANTESTC_EFALSE   4
 Medians mismatch. More...
 
#define LALRUNNINGMEDIANTESTC_EERR   5
 Subroutine returned wrong or no error. More...
 

Macro Definition Documentation

◆ LALRUNNINGMEDIANTESTC_ENOM

#define LALRUNNINGMEDIANTESTC_ENOM   0

Nominal exit.

Definition at line 64 of file LALRunningMedianTest.c.

◆ LALRUNNINGMEDIANTESTC_EARG

#define LALRUNNINGMEDIANTESTC_EARG   1

Error parsing command-line arguments.

Definition at line 65 of file LALRunningMedianTest.c.

◆ LALRUNNINGMEDIANTESTC_ESUB

#define LALRUNNINGMEDIANTESTC_ESUB   2

Subroutine returned error.

Definition at line 66 of file LALRunningMedianTest.c.

◆ LALRUNNINGMEDIANTESTC_EALOC

#define LALRUNNINGMEDIANTESTC_EALOC   3

Could not allocate data space.

Definition at line 67 of file LALRunningMedianTest.c.

◆ LALRUNNINGMEDIANTESTC_EFALSE

#define LALRUNNINGMEDIANTESTC_EFALSE   4

Medians mismatch.

Definition at line 68 of file LALRunningMedianTest.c.

◆ LALRUNNINGMEDIANTESTC_EERR

#define LALRUNNINGMEDIANTESTC_EERR   5

Subroutine returned wrong or no error.

Definition at line 69 of file LALRunningMedianTest.c.