BBN-Q / libx6

C/C++ driver for BBN X6-1000 firmware
Apache License 2.0
1 stars 1 forks source link

Correlators #3

Closed blakejohnson closed 9 years ago

blakejohnson commented 9 years ago

Adds the ability to compute correlations from enabled result streams. The strategy here is just to compute all possible combinations of enabled result streams. Since the combinations blow up quickly, and since I am using integer (effectively fixed-point) math to compute everything, I thought it prudent to limit the number of bodies included in the correlations. This is determined by the constant MAX_N_BODIES (currently = 3).

Includes some unit tests of various components used to build the correlators.

@caryan please review.

caryan commented 9 years ago

Don't we need to calculate the cross real/imag variance too?

blakejohnson commented 9 years ago

Whoops. Yes, I've been ignoring the cross terms in both the correlations and variance calculations.