fix convolution
add new function 'Hysteresis'