% Evaluate the "continuum model" convolution 
%
% Arguments:
% x  evaluation point (real number in the interval [0,1])
%
% Returns
% res   value of the convolution between PSF and targetf at point x
% 
% Samuli Siltanen Jan 2017

function res = contmeas(x)

% Check that x values are in the interval
if (max(x(:))>1)|(min(x(:))<0)
    error('values of x should be in the interval [0,1]')
end

% Load the results
load data/convdata xvec a convres

% Evaluate the function using interpolation
res = interp1(xvec,convres,x,'spline');


