|
10 | 10 | * 1.6. [eyeTracker](#eyeTracker) |
11 | 11 | * 1.7. [standByScreen](#standByScreen) |
12 | 12 | * 1.8. [waitForTrigger](#waitForTrigger) |
13 | | - * 1.9 [readAndFilterLogfile](#readAndFilterLogfile) |
| 13 | + * 1.9. [readAndFilterLogfile](#readAndFilterLogfile) |
14 | 14 | * 2. [Keyboard functions: response collection and aborting experiment](#Keyboardfunctions:responsecollectionandabortingexperiment) |
15 | 15 | * 2.1. [testKeyboards](#testKeyboards) |
16 | 16 | * 2.2. [getResponse](#getResponse) |
|
19 | 19 | * 3.1. [drawFixationCross](#drawFixationCross) |
20 | 20 | * 4. [Drawing dots](#Drawingdots) |
21 | 21 | * 5. [Drawing apertures](#Drawingapertures) |
| 22 | +* 6. [Randomization](#Randomization) |
| 23 | + * 6.1. [shuffle](#shuffle) |
| 24 | + * 6.2. [setTargetPositionInSequence](#setTargetPositionInSequence) |
| 25 | + * 6.3. [repeatShuffleConditions](#repeatShuffleConditions) |
22 | 26 |
|
23 | 27 | <!-- vscode-markdown-toc-config |
24 | 28 | numbering=true |
@@ -74,7 +78,7 @@ It shows a basic one-page instruction stored in `cfg.task.instruction` and wait |
74 | 78 | Counts a certain number of triggers coming from the mri/scanner before returning. |
75 | 79 | Requires number of triggers to wait for. |
76 | 80 |
|
77 | | -### 1.9 <a name='readAndFilterLogfile'></a>readAndFilterLogfile |
| 81 | +### 1.9. <a name='readAndFilterLogfile'></a>readAndFilterLogfile |
78 | 82 |
|
79 | 83 | Displays in the command window part of the `*events.tsv` file filterd by an element (e.g. 'trigger'). It can take the last output produced (through `cfg`) or any output BIDS compatible (through file path). |
80 | 84 |
|
@@ -125,3 +129,19 @@ Define the parameters of the fixation cross in `cfg` and `expParameters` and thi |
125 | 129 | ## 4. <a name='Drawingdots'></a>Drawing dots |
126 | 130 |
|
127 | 131 | ## 5. <a name='Drawingapertures'></a>Drawing apertures |
| 132 | + |
| 133 | +## 6. <a name='Randomization'></a>Randomization |
| 134 | + |
| 135 | +Functions that can be used to create random stimuli sequences. |
| 136 | + |
| 137 | +### 6.1. <a name='shuffle'></a>shuffle |
| 138 | + |
| 139 | +Is just there to replace the Shuffle function from PTB in case it is not in the path. Can be useful for testing or for continuous integration. |
| 140 | + |
| 141 | +### 6.2. <a name='setTargetPositionInSequence'></a>setTargetPositionInSequence |
| 142 | + |
| 143 | +For a sequence of length `seqLength` where we want to insert `nbTarget` targets, this will return `nbTarget` random position in that sequence and make sure that they are not in consecutive positions. |
| 144 | + |
| 145 | +### 6.3. <a name='repeatShuffleConditions'></a>repeatShuffleConditions |
| 146 | + |
| 147 | +Given `baseConditionVector`, a vector of conditions (coded as numbers), this will create a longer vector made of `nbRepeats` of this base vector and make sure that a given condition is not repeated one after the other. |
0 commit comments