Skip to content

vis.revcorr.generate_STA

 GENERATE_STA - Generate the Spike-Triggered Average (STA) from Hartley stimulus

  STA = vis.revcorr.generate_STA(S, KX_V, KY_V, FRAMETIMES, SPIKETIMES, RF_RANGE, T_COORDS, TMAX, M)

  Inputs:
   S - the s parameters of the Hartley stimulus
   KX_V - the kx parameters of the Hartley stimulus
   KY_V - the ky parameters of the Hartley stimulus
   FRAMETIMES - the time points of the Hartley stimulus
   SPIKETIMES - the times of the spikes to trigger on
   RF_RANGE - (Unused in current implementation logic but kept for signature)
   T_COORDS - vector of time coordinates relative to spike time for the STA (e.g. [-0.5 ... 0.5])
   TMAX - number of time bins for the reconstruction
   M - spatial dimension of the stimulus (MxM)

  Outputs:
   STA - the calculated Spike-Triggered Average (MxMxTMAX)