-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into manual_updates
- Loading branch information
Showing
43 changed files
with
869 additions
and
448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
function [gx,dgdx,dgdPhi] = g_SCR(Xt,Phi,ut,inG) | ||
% ● Description | ||
% TBA. | ||
% ● Description | ||
% This is the SCR observation function required by the VBA toolbox. It | ||
% adds the three generative processes (phasic SCR, SF, SCL) modelled in | ||
% f_SCR. | ||
% ● Arguments | ||
% Xt: | ||
% Phi: | ||
% ut: | ||
% inG: | ||
% Xt: a 7-element vector | ||
% Phi: input required by VBA, ignored | ||
% ut: input required by VBA, ignored | ||
% inG: input required by VBA, ignored | ||
% ● History | ||
% Introduced in PsPM 3.0 | ||
% Written in 2008-2015 by Dominik R Bach (Wellcome Trust Centre for Neuroimaging) | ||
|
||
global settings; | ||
if isempty(settings), pspm_init; end; | ||
if isempty(settings), pspm_init; end | ||
gx = Xt(1) + Xt(4) + Xt(7); | ||
dgdx = zeros(size(Xt,1),1); | ||
dgdx([1;4;7]) = 1; | ||
dgdPhi = []; | ||
if any(isnan(gx)|isinf(gx)), keyboard; end; | ||
if any(isnan(dgdx)|isinf(dgdx)), keyboard; end; | ||
if any(isnan(gx)|isinf(gx)), keyboard; end | ||
if any(isnan(dgdx)|isinf(dgdx)), keyboard; end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.