Smoothing a reference pathway based on discrete exogenous projections