People who code: we want your input. Take the Survey

# Questions tagged [cross-correlation]

The tag has no usage guidance.

343 questions
Filter by
Sorted by
Tagged with
149 views

### Why the spectral coherence is unity for all frequencies between single-frequency time series and itself

In the example below, I am plotting the coherence between time series and itself. The time series do has one frequency.The coherence magnitude was one for all frequencies. I wonder why it is not zero ...
84 views

### Threshold for CAF Surface

I am calculating a time partitioned Cross Ambiguity Function (CAF) by adding the surfaces of different time-sectioned CAFs together. Meaning, I calculate a CAF using 10 seconds of IQ data, calculate a ...
73 views

### Time delay estimation of signals increasingly decorrelated

The problem may be summarized as follows: I have a stochastic signals and I want to measure an increasing delay, as depicted in the following picture. The picture represents the signal as it is being ...
124 views

### Subtracting audio signal emitted - trying to use spectral subtraction to localize moving objects

I am a Software Engineer without much signal processing background and currently spending and experimenting to get use to it. My scenario: Assume a speaker and a microphone array. A speaker emits an ...
273 views

### Frequency Domain Variant of Pearson's Sample Correlation Coefficient?

Suppose that you need to find (i.e. acquire) $x_1$, a short data packet with a known bit sequence preamble (i.e. a PRBS BPSK), in $x_2$, quantized samples recorded from the output of an ADC. You don'...
639 views

### Cramer Rao Lower Bound for Cross Correlation (Time Shift Estimation)

UPDATE 2 Okay, I think I understand now why the defined CRLB is not applying to my use case. In my use case, we have very high SNR, and the the first signal $x_1$ is always the same. So the classical ...
241 views

### Why MATLAB only allows cpsd and mscohere between vectors with the same length?

I am studying the applications of finding coherence in the frequency spectrum between two signals for pattern recognition. I have a recording that is way longer than the sampled signal that I want to ...
165 views

### Choice of axes in 1D cross-correlation of a signal in a 2D space

I am working on a research project in which we present an observer with a target moving in a random walk in a plane in front of them, and record the eye movements they make to track it. We cross-...
456 views

### Finding lag times for multiple time series

I have $N$ time series which have unknown time offsets relative to each other. I want to estimate the $(N - 1)$ time offsets, $\tau_{i,i+1}$, which maximise the sum of the cross-correlations between ...
867 views

### Detecting delay and sample drift in audio files (wav, mp3, etc.)

In my application, I have an audio recording with background music. I know which song is playing in the background and have a copy of the original song (wav, mp3, etc.). The goal is to align the ...
258 views

### Cross Correlation shows peak at the same location every time

I have a signal which is taken from an accelerometer and I'm trying to match patterns between different windows of the signal by cross correlation. To do this I take different windows of the signal, ...
394 views

### Audio - TDOA and $\tt xcorr$, find the 'best' peak

I try to locate a mobile device using multilateration. The mobile device acts as the receiver and in the room I have three speakers. To calculate the position I need the time difference of arrival (...
289 views

### Fast Normalized Cross-Correlation for Stream-Data

I read some papers about fast normalized cross-correlation techniques. Most of them are used to identify a template in an original image. I was not able to find information about input-data in a ...
1k views

### Why correlation coefficient template matching perfoms better than cross-correlation and square-differences method

I am using this template in OpenCv's match template function by converting all images to grayscale. Here are my result using sum of square differences,cross correlation and correlation coefficient....
2k views

### Compare two voices and outline their similarity

I am trying to develop an application which records the voice of someone through a microphone. I will have a preset recorded voices for the same words. I then need to compare the real time recorded ...
410 views

### “Circular shift - invariant” distance

Couldn't decide whether the question belongs on Mathematics or here, but I guess I'll ask it here. I've got a discrete - valued function defined on a finite segment of a line that looks like this: ...
998 views

### GCC-PHAT cross correlation

I am trying to implement GCC-PHAT in python. The approach is similar to the following two links: link1 and link2 It seems the only difference between GCC-PHAT and normal cross-correlation using FFT ...
130 views

### Time delay analysis in different binary sequences

I am extracting a property of a signal which I represent with either a 0 for absent or 1 for present. This property is extracted for each data point in a time series and in the end I am left with a ...
403 views

### Noisy Signal auto/cross-correlation

I am trying to understand the basics of the cross/auto-correlation if the noisy signal $y(t)$ which is received from the channel at the receiver. Here at receiver we want to estimate the noise in the ...
295 views

### ACF and PACF Confidence Levels for ARMA

I'm trying to figure out where exactly to draw the confidence levels for the autocorrleation function (ACF) and the partial autocorrelation function (PACF) for an ARMA model. For PACF I found that a ...
738 views

### Upsampling signal for cross correlation

I am recording a 17khz signal at a sample freq of 44.1khz. I want to perform cross-correlation between the received and transmitted signals for calculating TDOA. But when I do xcorr, the results are ...
324 views

### Train Pulse Recognition in Medium Voltage Networks

I just started a project in the Smart Grids area. It involves the recognition and quick extinction of earth faults in a medium voltage system. The system works automatically and pretty much gets rid ...
367 views

### Finding audio signal time delay: cross-correlation vs. impulse response?

I need to find a time delay between the two audio signals, one comming from one set of speakers, and the other being the source signal that is initialy sent to speakers. I send some noise through ...
3k views

2k views

### Matching two audio inputs (signals) [duplicate]

this is for an application in which passwords are stored in the form of audio inputs . In order to provide user access , the password(in audio form) will be matched with already stored password(audio ...
28 views

2k views

### Trouble with time-syncing two radio signals using cross-correlation

I posted a similar question a while ago here (I'm posting this follow-up since I'd like to focus more on cross-correlation now). I have a setup where I have two software-defined radios connected to ...
329 views

### No cross-correlation between same signal recorded using two different microphones

I've recorded the same audio signal using two microphones located at the same approximate location. However, when checking the cross-correlation using MATLAB (using the xcorr function) it is ...
183 views

### How to estimate ALL time-delays across MULTIPLE signals?

Imagine there are 100 recordings of the same signal or pattern, but those recordings are not properly aligned with each other in time. In other words, each sample has some unknown time delay in ...
2k views

### Correlation as measure of similarity

Normalized correlation is used to measure how similar are two signals. I can understand similarity visually but I haven't seen a mathematical definition for the similarity of 2 signals anywhere. So I ...
The nearest question I can find is here, but it does not have an answer. Say I want to correlate the following two noisy channels: $x_1 = s_1 + n_1$ and $x_2 = s_2 + n_2$, where $s_1$ and $s_2$ are ...