mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
Functor for calculating the autocorrelation given a PSD.
Stores the fftT object and related working memory so that repeated calls do not re-allocate or re-plan the FFT.
T | is the real type of the PSD and resultig A.C. |
Definition at line 96 of file autocorrelation.hpp.
#include <sigproc/autocorrelation.hpp>
Public Member Functions | |
void | operator() (T *ac, size_t Nac, T *psd, size_t Npsd) |
Calculate the A.C. as the inverse FFT of the PSD. More... | |
void | operator() (std::vector< T > &ac, std::vector< T > &psd) |
Calculate the A.C. as the inverse FFT of the PSD. More... | |
|
inline |
Calculate the A.C. as the inverse FFT of the PSD.
This calculates the circular autocorrelation from the PSD.
[out] | ac | On output contains the autocorrelation. If ac.size()==0, it is allocated to psd.size(). |
[in] | psd | the 2-sided FFT storage order PSD |
Definition at line 131 of file autocorrelation.hpp.
References mx::sigproc::autocorrelationFromPSD< T >::operator()().
|
inline |
Calculate the A.C. as the inverse FFT of the PSD.
This calculates the circular autocorrelation from the PSD.
[out] | ac | pre-allocated array, on output contains the first Nac points of the autocorrelation |
[in] | Nac | the allocated size of ac. |
[in] | psd | the 2-sided FFT storage order PSD |
[in] | Npsd | the number of points in the PSD |
Definition at line 107 of file autocorrelation.hpp.
Referenced by mx::sigproc::autocorrelationFromPSD< T >::operator()().