This file is indexed.

/usr/share/psychtoolbox-3/PsychGamma/FitGammaPow.m is in psychtoolbox-3-common 3.0.11.20131230.dfsg1-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
function [fit_out,x,err] = FitGammaPow(values_in,measurements,values_out,x0)
% [fit_out,x,err] = FitGammaPow(values_in,measurements,values_out,x0)
%
% Fit power function to gamma data.
%
% NOTE: Uses Mathworks Optimization Toolbox.
% 
% Also see FitGamma, FitGammaDemo.
%
% 4/08/02 awi   Turned off warnings while calling constr to avoid future obsolete warning
% 3/4/05	dhb	  Conditionals for optimization toolbox version.

% Check for needed optimization toolbox, and version.
if (exist('fmincon') == 2)
	options = optimset;
	options = optimset(options,'Diagnostics','off','Display','off');
	options = optimset(options,'LargeScale','off');
	x = fminunc('FitGammaPowFun',x0,options,values_in,measurements);	
elseif (exist('constr') == 2)
	options = foptions;
	options(1) = 0;
	options(14) = 600;
	x = constr('FitGammaPowFun',x0,options,[],[],[],values_in,measurements);
else
	error('FitGammaPow requires the optional Matlab Optimization Toolbox from Mathworks');
end

% Now compute fit values and error to data for return
fit_out = ComputeGammaPow(x,values_out);
err = FitGammaPowFun(x,values_in,measurements);