eDSP  0.0.1
A cross-platform DSP library written in C++.
Namespaces | Enumerations | Functions
correlation.hpp File Reference
#include <edsp/spectral/dft.hpp>
#include <vector>

Go to the source code of this file.

Namespaces

 edsp
 
 edsp::spectral
 

Enumerations

enum  edsp::spectral::CorrelationScale { edsp::spectral::CorrelationScale::None, edsp::spectral::CorrelationScale::Biased, edsp::spectral::CorrelationScale::Unbiased }
 The ScaleOpt enum defines the normalization option of the correlation function. More...
 

Functions

template<typename InputIt , typename OutputIt , typename RAllocator = std::allocator<meta::value_type_t<InputIt>>, typename CAllocator = std::allocator<std::complex<meta::value_type_t<OutputIt>>>>
void edsp::spectral::xcorr (InputIt first, InputIt last, OutputIt d_first, CorrelationScale scale=CorrelationScale::None)
 Computes the autocorrelation of the range [first, last) and stores the result in another range, beginning at d_first. More...
 
template<typename InputIt , typename OutputIt , typename RAllocator = std::allocator<meta::value_type_t<InputIt>>, typename CAllocator = std::allocator<std::complex<meta::value_type_t<OutputIt>>>>
void edsp::spectral::xcorr (InputIt first1, InputIt last1, InputIt first2, OutputIt d_first, CorrelationScale scale=CorrelationScale::None)
 Computes the correlation between the range [first1, last1) and the [first2, last2), and stores the result in another range, beginning at d_first. More...