Skip to content

vis.revcorr.calculateHartleyResponse

 CALCULATEHARTLEYRESPONSE - Compute the response of a model cell to a Hartley stimulus

  [RESPONSE, SPIKETIMES] = vis.revcorr.calculateHartleyResponse(S, KX_V, KY_V, FRAMETIMES, RF, 'NAME', VALUE, ...)

  Calculates the linear response of a model neuron with a spatiotemporal receptive field (RF)
  to a Hartley stimulus sequence. The response is the mean dot product of the stimulus and the
  receptive field at each time point.

  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 frames
   RF - the spatiotemporal receptive field (MxMxNumTimeSteps)

  Optional Name-Value pairs:
   rfDeltaT - the time step of the receptive field (default: 0.005)
   rfNumTimeSteps - the number of time steps in the receptive field (default: size(RF,3))
   responseDeltaT - the time step for reconstructing the response (default: 0.01)
   max_TimeBlock_StartTime - maximum start time to consider for response calculation (default: 500)
   threshold - threshold for detecting spikes in the response (default: 1)
   rfTimeRange - the total duration of the receptive field (default: rfDeltaT * rfNumTimeSteps)
   Verbose - if true, print progress (default: true)

  Outputs:
   RESPONSE - the continuous response trace of the model cell
   SPIKETIMES - the times where the response exceeds the threshold