signal.averaging | R Documentation |
Averages Signal by reshaping as matrix, and obtaining mean of column sums.
signal.averaging(data,frames,epochs)
data |
Vector containing Signal To Average |
frames |
Frames in each trial |
epochs |
Number of Trials in vector |
average_signal |
Averaged Signal of length (frames) |
Rose Connolly connolr3@tcd.ie
# mysignal<-noise(200,10,250)+7*peak(200,10,250,7,115) #a_signal<-signal.averaging(mysignal,200,10) #plot.signal(a_signal,mark=115,title="Averaged Signal") ## The function is currently defined as signal.averaging<-function(data,frames,epochs){ a <- matrix( data, nrow=frames, ncol=epochs ) return(rowMeans(a)) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.