/usr/share/psychtoolbox-3/PsychGamma/InitialXPolyR.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 | function x = InitialXPolyR(values_in,measurements)
% x = InitialXPolyR(values_in,measurements)
%
% 3/15/94 dhb, jms Created from InitialXPoly to allow
% separate order for raw fits.
order = 6;
if (nargin < 2)
x = zeros(order,1);
else
x = [values_in.^6 values_in.^5 ...
values_in.^4 values_in.^3 values_in.^2, values_in] \ measurements;
end
|