2.6.3 shuffleTraces() - shunnnli/NeuroDAP GitHub Wiki
Overview
Given an array, return the shuffle version of the array. The shuffle is done by randomly selecting a trial (i.e. row), shuffle the columns, and repeat for nShuffle times.
Inputs and options
Required inputs
traces: double, an array that stores all the traces of signal aligned to the event. Each row is each trial and column is each time point. Output ofplotTraces()
Options
nShuffle: double; determine the number of shuffles performed, default is the same amount of trials (i.e. rows) in the input array.
Outputs
shuffled: double, an array of shuffled data
Examples
Given an input array like below:
shuffled = shuffleTraces(data);