# Questions tagged [cross-correlation]

The tag has no usage guidance.

327 questions
Filter by
Sorted by
Tagged with
25 views

### Is it possible to normalize an un-normalized cross-correlation vector after computation

I have a C++ code that computes cross-correlation for a given 2 vectors as input. It doesn't have an implicit normalization or normalized implementation of cross-correlation. But I would prefer a ...
33 views

### CWT at low scales: PyWavelets vs Scipy

Low scales are arguably the most challenging to implement due to limitations in discretized representations. Detailed comparison here; the principal difference is in how the two handle wavelets at ...
30 views

### Finding delay where squared error between signal and data is minimal

I have a set of points which correspond to part of a known signal. What I want to do is estimate the delay between the set of points and the known signal. In this case, I don't think cross ...
68 views

### Produce musical signal from instantaneous frequency

I'm implementing the Yin Algorithm in Python so as to extract the pitch of my voice when whistling or humming. My goal is to produce the Gate (Envelop Control) and CV (Pitch Control) signals which can ...
38 views

### How to use cross-correlation to verify speech data and determine delay

I have been experimenting with cross-correlation function to verify the presence of speech in a recorded file wrt a source file. I tried the following in Matlab: <...
83 views

### Fourier Transforms, Convolution, Cross-correlation: what is their physical unit exactly?

Let us assume we are talking about real, deterministic, electrical signals $x(t)$ and $y(t)$ (magnitude in Volts). There are different kind of Fourier Transforms. I made a table to summarize: NB: By ...
61 views

### Proving the upper bound of cross correlation

I am reading about cross-correlation from this document and equation (5) states that The maximum value of the crosscorrelation is not always when the shift equals zero; however, we can prove the ...
50 views

### Convolution and Cross Correlation Blackbox

Suppose I was handed a blackbox that I know is either a Convolution filter or Cross-Correlation filter, and my job is to find out which it is. My idea is to pretend that it's Cross-Correlation and ...
39 views

### GCC-PHAT always peaks at zero when estimating delay offset

My question is that when I used gcc-phat to estimate delay between two audio signals, it always returns zero offset. However normal cross correlation Xcorr gives a good result. I don't know the reason....
23 views

### The normalized cross-correlation of two signals

I wanted to calculate the normalized cross-correlation function of two signals. I use the command ...
36 views

### Strange behavior in fixed-point FFT

This is a problem I encountered some time ago while doing my thesis, which still now, I am not sure to understand. By then, I was implementing the circular correlation in an FPGA using this Xilinx FFT ...
72 views

### SVD vs matched filter

Reading about singular value decomposition (SVD) in the context of signal processing applications, one can separate the signal from the noise into orthogonal subspaces. On the surface this sounds like ...
64 views

### Fast calculation of normalization factor for normalized cross correlation

There has been a number of posts here I've browsed through that explain implementations of normalized cross-correlation in Python. One such implementation that is frequently cited is found below. <...
38 views

### Interpreting the cross correlation results

I am new to this forum. I am just trying to understand how to calculate delay (in terms of samples) between two signals using cross-correlation function. I wrote a small Matlab code in order to ...
44 views

### Comparing similarity of two simultaneously recorded EEGs in freq domain

I have two EEG signals that are simultaneously recorded during the night (sleep). Imagine one device recorded from channel F4 and the other from Fp2. Now I would like to check the similarity of these ...
34 views

### Matlab: xcorr: Having trouble when I try to calculate delay between two sinusoids

I have a problem when I try to use Matlab built-in function for cross-correlation 'xcorr'. Background: I created two sinusoids, one of them delayed in time. I choose center frequencies of these ...
26 views

### aperiodic auto correlation properties

I'm reading about PSC (primary synchronization code) in UMTS. It is a so-called Golay sequence. It is said it has a good aperiodic auto correlation properties. What does it mean (in terms of aperiodic)...
30 views

26 views

### Instantaneous frequency, PLLs, frequency mixing, cross-correlation and the cross-correlation matrix

This is as much a request for comment and critique as anything else. I am looking at tracking how a system perturbs an input that is a (real) sinoid of varying frequency. ...
7 views

### Clipping cross correlation peak range in noisy signal

The result of a cross-correlating a signal of deltas (period N) with a signal of white noise that's containing a periodic signal (of period N, Length and Position) is plotted in the image. I want to ...
29 views

### Cross Correlation of output with input is equivalent to impulse response of a large bandwidth input (LTI System)?

What is the practical way to found the impulse response of a system ? As impulse function has a very large amplitude at zero time (analog signal). So the cross corelation of output of a large ...
31 views

### Correlation of discrete time periodic sequences

So I was reading this textbook - Digital Signal Processing by Proakis and Manolakis. The authors define the cross-correlation operation for 2 energy signals $x(n)$ and $y(n)$ in section 2.6.1 as:  ...
51 views

### Why Convolve instead of Cross-Correlate for Detection of Known Signal?

I am reading a journal on optimal signal detection by mobile sensor. It is mentioned: How should we plan to robots’ motion in order to maximize the detection probability? Assuming the source emits ...
156 views

33 views

### Variance of circular vector correlation

Say I have two zero-mean vectors, with a size of N and the translation between them is k. Say the image signal std is $\sigma_s$ and the noise std is given by $\sigma_n$. What is the variance of the ...
19 views

### What happens to crosscorrelation of two noise generator if one of them were to be inverted

I have two noise generator u1 and u2 and their crosscorrelation is given, what will happen to this crosscorrelation if u2 or u1 were to be inverted?
51 views

### How to extract information about each constituent 'wave' of a signal?

I have a vector containing wind speeds sampled at 1Hz over ten minutes. I have applied a lowpass filter of 0.25Hz to get only the wind speeds I am interested in. I now want to use MATLAB to ...
37 views

### Synchronize device to audio stream - Approach

I am working on a device which's actions should be synchronized to the audio played. The audio stream is known in beforehand and can be altered to contain signals for the synchronization. But the ...
107 views

### Difference Fourier Shift Theorem and Cross Correlation Theorem

can someone explain me the difference between the Fourier Shift Theorem and the Cross Correlation Theorem? The shift theorem says that a delay in the time domain corresponds to a linear phase term ...
49 views

### Transforming digitized noisy signal before applying cross-correlation

I'm trying to grasp the concept of cross-correlation as it applies to CDMA in the GPS C/A signal where noise is involved and the SNR is low. My understanding is that before calculating the cross-...
80 views

### Autocorrelation Computation with MATLAB

I have done the computation of the autocorrelation of a sequence (vector), here called "frame", and I have plotted it. Here the code: The resulting graph is: I do not understand the position of the ...
199 views

### Matlab normxcorr for 1D signals

I am very surprised not to find a version of normxcorr2 for 1D signals in Matlab ! I implemented something like that by hand (with 2 for loops, and normalizing the template as well as the window under ...
46 views

here is the Simulink model that i'm using : The matlab function script : function tau = fcn(sig,refsig) tau = gccphat(sig,refsig); The errors :