I have what technically should be an event series, spike times of a neuron. Here's a subset of the spiking data -
st = {2.60661, 4.39836, 5.01687, 6.09621, 6.62883, 6.93686, 7.31116, 8.14444, 8.56538, 9.11395}
If I whip this into a TimeSeries
then I can easily Accumulate[]
them to yield a counting function like so:
spikeData = TimeSeries[Table[1,Length[st]],{st}];
accSpikeData = Accumulate[spikeData];
Row[{ListPlot[spikeData, Filling -> Bottom],ListPlot[accSpikeData, Filling -> Bottom]}]
But- If I do the same thing with an EventSeries
instead...
spikeData = EventSeries[Table[1, Length[st]], {st}];
accSpikeData = Accumulate[spikeData];
Row[{ListPlot[spikeData, Filling -> Bottom], ListPlot[accSpikeData, Filling -> Bottom]}]
And, indeed, looking at the data-
accSpikeData["Path"]
(* {{2.60661, 1}, {4.39836, Missing[]}, {5.01687, Missing[]}, {6.09621,
Missing[]}, {6.62883, Missing[]}, {6.93686, Missing[]}, {7.31116,
Missing[]}, {8.14444, Missing[]}, {8.56538, Missing[]}} *)
I'm not sure if this is a bug or 'intended behavior'. As I understand EventSeries
it is simply a non-interpolating version of TimeSeries
, and, of course I can do what I need here with a TimeSeries
but was just wondering why even having EventSeries
is a thing.