.correlation {fftab} | R Documentation |
Compute Normalized Correlation Between Two Signals
Description
Computes the normalized correlation between two signals based on their Fourier representations.
Usage
.correlation(a, b)
Arguments
a |
A |
b |
A |
Details
This function computes the cross-spectrum of two signals, removes the DC component, and calculates the real part of the cross-spectrum sum. The result is normalized using the variances of both signals.
Normalization ensures that the correlation value lies between -1 and 1.
Value
A numeric value representing the normalized correlation between the two signals.
[Package fftab version 0.1.0 Index]