Skip to content

spJPETH

  spJPETH returns  jpoint peri-event time histograms

  Example:
  out= spJPETH(fhandle, ParamName1, ParamValue1.....)
  out= spJPETH(channels, ParamName1, ParamValue1.....)

  Inputs are string/vlaue pairs
      'Trigger'               Trigger channel (single channel)
      'Sources'               List of source channels
      'Start'                 Start time for processing (in seconds)
      'Stop'                  End time for processing (in seconds)
      'Duration'              Duration of the required correlation (in seconds)
      'BinWidth'              Binwidth (in seconds)
      'PercentPreTime'        Percentage pre-time (% of Duration)
      'SweepsPerAverage'      Number of triggers to use for each average.
                                  Set to zero to use all triggers. Otherwise, if 
                                  SweepsPerAverage is less than the number
                                  of available triggers, multiple event 
                                  correlations will be returned, each using
                                  SweepsPerAverage triggers
      'RetriggerFlag'         If true, all triggers will be used 
                                  (typical for an event correlation)
                              If false, triggers falling during a preceding
                                  sweep will be ignored (typical for a PETH)

  NB spEventCorrelation calls the rasterprep m-file or the shadowing
  m-file if rasterprep.cpp has not been compiled for the current platform

  -------------------------------------------------------------------------
  Author: Malcolm Lidierth 01/09
  Copyright © The Author & King's College London 2009-
  -------------------------------------------------------------------------