8000 Burn in is removed so that the size of the signal and noise volumes are the same by CameronTEllis · Pull Request #542 · brainiak/brainiak · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions examples/utils/fmrisim_multivariate_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5412,11 +5412,10 @@
"# Set up stimulus event time course parameters\n",
"event_duration = 2 # How long is each event\n",
"isi = 7 # What is the time between each event\n",
"burn_in = 1 # How long before the first event\n",
"\n",
"total_time = int(dim[3] * tr) + burn_in # How long is the total event time course\n",
"total_time = int(dim[3] * tr) # How long is the total event time course\n",
"events = int((total_time - ((event_duration + isi) * 2)) / ((event_duration + isi) * 2)) * 2 # How many events are there?\n",
"onsets_all = np.linspace(burn_in, events * (event_duration + isi), events) # Space the events out\n",
"onsets_all = np.linspace(0, events * (event_duration + isi), events) # Space the events out\n",
"np.random.shuffle(onsets_all) # Shuffle their order\n",
"onsets_A = onsets_all[:int(events / 2)] # Assign the first half of shuffled events to condition A\n",
"onsets_B = onsets_all[int(events / 2):] # Assign the second half of shuffled events to condition B\n",
Expand Down
0