Skip to content. | Skip to navigation

Sections
Personal tools
You are here: Home Forum Using data sets lgn dataset

lgn dataset

Up to Using data sets

lgn dataset

Posted by Maryam Kashefpoor at February 11. 2015

hi

I'm using lgn dataset.There is 10 trials for each stimulus orientaion.I want to cycle-average it across trials for each orientation.How should I do this?

Re: lgn dataset

Posted by Jeff Teeters at February 16. 2015

The data contributor (Nicholas Priebe) provided the following answer:


Cycle-averaging means that you average the responses of individual cycles presented in a single trial.  If the stimulus is presented for 4 seconds at 2 Hz, there are 8 cycles in each stimulus presentation.  The data trace should be cut into 8 pieces.


For example, in matlab, if we have a data "a", which has 8 cycles:

a = sin(pi/100:pi/100:(16*pi));

% A cycleaveraged version can be generated by using the matlab functions reshape and mean:
 
cycleaveraged_a = mean(reshape(a,200,8)')
Powered by Ploneboard
Document Actions