Navigation
API > API/Runtime > API/Runtime/SignalProcessing > API/Runtime/SignalProcessing/FBlockCorrelator
Description
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]]
| Name | AutoCorrelate |
| Type | function |
| Header File | /Engine/Source/Runtime/SignalProcessing/Public/DSP/BlockCorrelator.h |
| Include Path | #include "DSP/BlockCorrelator.h" |
| Source | /Engine/Source/Runtime/SignalProcessing/Private/BlockCorrelator.cpp |
void AutoCorrelate
(
const FAlignedFloatBuffer & Input,
FAlignedFloatBuffer & Output
)
Parameters
| Name | Remarks |
|---|---|
| Input | input block with GetNumInputValues() elements. |
| Output | Output block with GetNumOutputValues() elements. |