add gap up/down factor to averageanalyer