function y = tri_l(x,m,s)
y = min(1,(max(0,(1-(x-m) ./ s))));
