Module |
|
Header |
/Engine/Source/Runtime/SignalProcessing/Public/DSP/BlockCorrelator.h |
Include |
#include "DSP/BlockCorrelator.h" |
Source |
/Engine/Source/Runtime/SignalProcessing/Private/BlockCorrelator.cpp |
void AutoCorrelate
(
const AlignedFloatBuffer & Input,
AlignedFloatBuffer & Output
)
Autocorrelate an input signal.
The Output array is filled with the autocorrelation of the Input. Care should be taken when interpreting the output as the elements are ordered so that the autocorrelation value of zero lag is in the first element.
AutoCorr[k] = Sum_n(Input[n] * Input[n + k])
Then for M = `GetNumInputValues()_ the Output array contains: Output = [AutoCorr[0], AutoCorr[1], ..., AutoCorr[M-1], AutoCorr[M], AutoCorr[-M + 1], AutoCorr[-M + 2], ..., AutoCorr[-2], AutoCorr[-1]]
Parameter |
Description |
---|---|
Input |
input block with GetNumInputValues() elements. |
Output |
Output block with GetNumOutputValues() elements. |