24 const double function1 [],
25 const double function2 [],
28 double correlations [])
const;
33 const double function1 [],
34 const double function2 [],
35 double &corrMax)
const;
42 fftw_complex *m_signalA;
43 fftw_complex *m_signalB;
44 fftw_complex *m_outShifted;
void correlateWithoutShift(int N, const double function1[], const double function2[], double &corrMax) const
Return the correlation of the two functions, without any shift.
Correlation(int N)
Single constructor. Slow memory allocations are done once and then reused repeatedly.
void correlateWithShift(int N, const double function1[], const double function2[], int &binStartMax, double &corrMax, double correlations[]) const
Return the shift in function1 that best aligns that function with function2.