These are chat archives for thunder-project/thunder

3rd
Jul 2015
tomsains
@tomsains
Jul 03 2015 11:33
This is a question that i should know the answer to but is there a way to compute the average time series across multiple epochs? for example i have 4 epochs where a stimulus is presented and i want to compute a mean time series of those epochs.
Jason Wittenbach
@jwittenbach
Jul 03 2015 16:36
@tomsains checkout Series.seriesAggregateByIndex
make a vector as long as your Series records, and have it indicate the epochs -- e.g. [0,0,0,0,1,1,1....]
If you set this as the index on the Series object and then to series.seriesAggregateByIndex(np.mean) is will return a new series with one element for each epoch and that element will be the mean over that epoch