make RestorableEWMA a static inner class