ENH: smoothing and downsampling works but not on the error
add triangle filter