Adaptive quasioptimal filter with discontinuous parameters