1 Apr 14:41
cross correlation functions
Chris Lee <c.j.lee <at> tnw.utwente.nl>
2009-04-01 12:41:54 GMT
2009-04-01 12:41:54 GMT
Hi All,
I have two arrays of data and I want to perform a cross correlation on them. Will correlate(input, weights, output=None, mode='reflect', cval=0.0, origin=0) do this for me?
Would the structure be something like this (pseudo code):
arr1 = [bunch of data]
arr2 = [bunch of data]
input_arr = append(arr1, arr2)
weigths = zeros(input_arr.shape, float)
weigth[max(arr1.shape)::] = 1
out_mat = correlate(input_arr, weights)
Otherwise, I may have to loop... the prospect is not appealing as these arrays are reasonably large.
Cheers
Chris
***************************************************
Chris Lee
Laser Physics and Nonlinear Optics Group
MESA+ Research Institute for Nanotechnology
University of Twente
Phone: ++31 (0)53 489 3968
fax: ++31 (0)53 489 1102
***************************************************
_______________________________________________ SciPy-user mailing list SciPy-user <at> scipy.org http://mail.scipy.org/mailman/listinfo/scipy-user
I believed at first that I could make a sort of parametric bispline
fit with the functions available in scipy.interpolate, but I didn't
succeed in.
Do you have any example or hint for doing this kind of treatment in
scipy ?
LB
RSS Feed