/usr/share/psychtoolbox-3/PsychGamma/FitGammaLin.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 18 19 20 21 22 | function [fit_out,x,err] = FitGammaLin(values_in,measurements,values_out)
% [fit_out,x,err] = FitGammaLin(values_in,measurements,values_out)
%
% Linearly interpolate gamma data
%
% 3/15/94 dhb, jms Wrote it.
% Allocate return space
[mOut,nOut] = size(values_out);
fit_out = zeros(mOut,nOut);
% Find first non-zero entry
[mIn,nIn] = size(values_in);
index = find(measurements ~= 0.0);
% Make the data reasonable and interpolate
useMeas = MakeMonotonic(HalfRect(measurements));
fit_out = interp1(values_in,useMeas,values_out,'linear');
x = [];
err = 0;
%[measurements,useMeas,interp1(values_in,useMeas,values_in,'linear')];
|