ENH: Add numerical filtering code