Calculates a spike triggered average (STA). Only works for one dimensional data (AnalogSignal objects, not AnalogSignalArrays). The offset for the data used can be specified in samples before and after the spike.