1D Correlation on 3D array
![](https://secure.gravatar.com/avatar/2daa4c6780621c763285c2803187af97.jpg?s=120&d=mm&r=g)
1 Dec
2007
1 Dec
'07
4:56 a.m.
Hi, I was curious if anyone has a fast non-looping way to calculate 1D correlations on a N-dim array (my case is specifically 3). What i have right now is rather slow: import numpy as N from scipy.signal import correlate ts_data = N.ones((360,1201,17), dtype=N.complex64) for index in N.ndindex(ts_data.shape[:-1]): x = ts_data[index] R = correlate(x, x.conj()) I've looked at just passing in the whole array, but that seems to want to do full N-dim correlation. Thanks, Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma
6065
Age (days ago)
6065
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ryan May