correlation

How to extract specific values from auto-correlated data in MATLAB?

I have been working on extracting the peak values from a graph (see previous question) which looks like this: but I have noticed that for some of the xcorr graphs I have been working on the values do not turn out as expected and they normally turn out looking more like this: and this: Instead of trying to pick the peak values li...

Excel correl() function with java?

Hi everybody, I need a clone of excel correl() function in java, I found apache math commons library that has some functions in org.apache.commons.math.stat.correlation package, but not sure if they are the same, some docs says that excel correl() function is very similar to PEARSON() excel function but not quite the same, anybody famil...

How can I find out if two strings are mostly equal (in perl)?

I have a string that I want to compare against an array of strings, and return the array element that most closely matches. I can write a sliding correlator that counts the number of matching characters at each step and returns the max correlation. But is there a better way? For example: control_string = drv_probability_1_max List:...

Accurate signal delay calculation in Python

Hi, I'm trying to calculate the lag between two signals in Python using cross correlation. The two signals are almost identical except for a very small timelag. I've tried numpy.correlate and scipy.convolve (alot faster) and both works relatively well but gives a small error. I'm starting to suspect that the error is the result of Pytho...

Calculate autocorrelation using FFT in matlab

Hi, I've read some explanations of how autocorrelation can be more efficiently calculated using the fft of a signal, multiplying the real part by the complex conjugate (fourier domain), then using the inverse fft, but I'm having trouble realizing this in matlab because at a detailed level, I don't really know what I'm doing. :o) Any k...