/usr/share/psychtoolbox-3/PsychGamma/InitialXExtP.m is in psychtoolbox-3-common 3.0.11.20140816.dfsg1-1.
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 | function x = InitialXExtP(xp)
% x = InitialXExtP(xp)
%
% Initial values for extended power function fit.
%
% If argument is passed, it is assumed to be the
% parameters for best ordinary power function fit.
%
% 8/7/00 dhb Modify for new equation.
% 11/16/06 dhb Order of vector was reversed relative to how it's used in
% FitGammaExpP. Make default guess for gamma 2.
% 11/16/06 dhb Adjust initial offset for [0,1] world.
x = [2 0]';
if (nargin == 1)
x(1) = xp;
end
|