/usr/share/psychtoolbox-3/PsychGamma/InitialXPoly.m is in psychtoolbox-3-common 3.0.9+svn2579.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 | function x = InitialXPoly(values_in,measurements)
% x = InitialXPoly(values_in,measurements)
%
% 10/22/93 dhb Changed order from 9 to 6.
% 3/12/94 dhb Bumped order up to 7.
% 3/13/94 dhb Bumped order back to 6.
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
|