math Definition Clip Function The clip function is defined as: clip(x,a,b)=⎩⎨⎧axbif x<aif a≤x≤bif x>b