Reset-free data-driven gain estimation