comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » vectorizing a correlation calculation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
vectorizing a correlation calculation [message #2179] Fri, 03 June 1994 08:52
orbach is currently offline  orbach
Messages: 9
Registered: June 1994
Junior Member
I have written a routine to calculate a function which is very similar
to an autocorrelation function, from an array containing neuronal spiking times
(in fact, many neurophysiologists actally call this function an autocorrelation,
but this is slightly inexact). The output of the calculation is a new array which
describes, given a spike at time t = 0, how likely it is for there to be another
spike at various times t afterwards. The user specifies how far out from time
t = 0 the function should be calculated (Tmax), as well as the binsize of the
histogram. My function literally walks through the array, spike by spike,
performing the built-in "histogram" function to calculate that spike's local density
function, adding successive outputs in turn.
Needless to say this is a slow process, and I was wondering if anyone had any
ideas about how to vectorize this calculation so that I could use operations on arrays
rather than looping through the array of spiketimes. An alternative approach would
be to calculate this density function from the reverse Fourier Transf. of the power
spectrum of the original spiketrain (up to some minor housekeeping details). However,
this actually takes longer than does doing it the way I described above.
Any ideas, either posted here or sent directly to me, would be greatly
appreciated. -Darren Orbach
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Finding elements in Two Arrays (THE FUNCTION)
Next Topic: Re: Contouring binary data

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:11:20 PDT 2025

Total time taken to generate the page: 0.00630 seconds