adaptive i-average-filter