Skip to content

Commit 198247b

Browse files
committed
improved naming | allow unqie hrf to be other than only 2D or 4D
1 parent 70d904d commit 198247b

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed
25 Bytes
Binary file not shown.

Computational Neuroimaging Toolbox.prj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<param.email>mario.senden@maastrichtuniversity.nl</param.email>
66
<param.company>Maastricht University</param.company>
77
<param.summary />
8-
<param.description>Toolbox for estimating input-referred models containing tools for Fourier analyses of phase-encoded stimuli, population receptive field mapping, estimating parameters of generic (user-defined) input-referred models as well as performing ridge regression.</param.description>
8+
<param.description>A toolbox for estimating input-referred models. Specifically, the toolbox contains tools for Fourier analyses of phase-encoded stimuli, population receptive field mapping, estimating parameters of generic (user-defined) input-referred models as well as performing ridge regression.</param.description>
99
<param.screenshot>${PROJECT_ROOT}/icon.png</param.screenshot>
1010
<param.version>1.1</param.version>
1111
<param.output>${PROJECT_ROOT}/Computational Neuroimaging Toolbox.mltbx</param.output>
1212
<param.products.name />
1313
<param.products.id />
1414
<param.products.version />
1515
<param.platforms />
16-
<param.guid>45386ee3-9879-4212-9d25-81d0d56faf46</param.guid>
16+
<param.guid>c28f0cda-6da2-4405-8c3c-ec0245c6f968</param.guid>
1717
<param.exclude.filters />
1818
<param.exclude.pcodedmfiles>true</param.exclude.pcodedmfiles>
1919
<param.examples />
@@ -65,6 +65,8 @@
6565
<param.required.addons />
6666
<param.matlab.project.id />
6767
<param.matlab.project.name />
68+
<param.release.start />
69+
<param.release.end />
6870
<param.release.current.only />
6971
<param.compatiblity.windows />
7072
<param.compatiblity.macos />
6 Bytes
Binary file not shown.

code/pRF.m

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
self.h_stimulus = p.Results.params.h_stimulus;
120120
if ~isempty(p.Results.hrf)
121121
self.l_hrf = size(p.Results.hrf,1);
122-
if ndims(p.Results.hrf)==4
122+
if ndims(p.Results.hrf)>2
123123
self.hrf = reshape(p.Results.hrf,...
124124
self.l_hrf,self.n_total);
125125
else
@@ -238,7 +238,7 @@ function create_timecourses(self,varargin)
238238
% location (x,y) and size parameters.
239239
%
240240
% optional inputs are
241-
% - max_R : radius of the field of fiew (default = 10.0)
241+
% - max_radius : radius of the field of fiew (default = 10.0)
242242
% - number_XY : steps in x and y direction (default = 30.0)
243243
% - min_slope : lower bound of RF size slope (default = 0.1)
244244
% - max_slope : upper bound of RF size slope (default = 1.2)
@@ -250,14 +250,14 @@ function create_timecourses(self,varargin)
250250

251251
p = inputParser;
252252
addOptional(p,'number_XY',30);
253-
addOptional(p,'max_R',10);
253+
addOptional(p,'max_radius',10);
254254
addOptional(p,'number_slope',10);
255255
addOptional(p,'min_slope',0.1);
256256
addOptional(p,'max_slope',1.2);
257257
p.parse(varargin{:});
258258

259259
n_xy = p.Results.number_XY;
260-
max_r = p.Results.max_R;
260+
max_r = p.Results.max_radius;
261261
n_slope = p.Results.number_slope;
262262
min_slope = p.Results.min_slope;
263263
max_slope = p.Results.max_slope;
@@ -303,10 +303,10 @@ function create_timecourses(self,varargin)
303303
function results = mapping(self,data,varargin)
304304
% identifies the best fitting timecourse for each voxel and
305305
% returns a structure with the following fields
306-
% - R
307-
% - X
308-
% - Y
309-
% - Sigma
306+
% - corr_fit
307+
% - mu_x
308+
% - mu_y
309+
% - sigma
310310
% - Eccentricity
311311
% - Polar_Angle
312312
%

0 commit comments

Comments
 (0)