next up previous contents
Next: Function: extract_noise() Up: GRASP Routines: Stochastic background Previous: Example: monte_carlo program   Contents


Function: test_data12()

0

int test_data12(int n, float *data1, float *data2)
This function tests two data sets to see if they have probability distributions consistent with a Gaussian normal distribution.

The arguments of test_data12() are:

n: Input. The number $N$ of data points contained in each of the input arrays.
data1: Input. data1[0..n-1] is an array of floating point variables containing the values of the first array to be tested.
data2: Input. data2[0..n-1] is an array of floating point variables containing the values of the second array to be tested.

test_data12() is a simple function that makes use of the is_gaussian() utility routine. (See Sec. [*] for more details.) test_data12() prints a warning message if either of the data sets contain a value too large to be stored in 16 bits. (The actual maximum value was chosen to be 32765.) It returns 1 if both data sets pass the is_gaussian() test. It returns 0 if either data set fails, and prints a message indicating the bad set.

Authors: Bruce Allen, ballen@dirac.phys.uwm.edu, and Joseph Romano, romano@csd.uwm.edu
Comments: In the context of stochastic background simulations, data1[] and data2[] contain the values of the whitened data streams $o_1(t)$ and $o_2(t)$ that are output by the two detectors.


next up previous contents
Next: Function: extract_noise() Up: GRASP Routines: Stochastic background Previous: Example: monte_carlo program   Contents
Bruce Allen 2000-11-19