function out=tent(x,param)
%
lambda=param(1);
if x<=1/2
    out=2*lambda*x;
else
    out=2*lambda*(1-x);
end
   
end