The code on slide 112 of ACH-01.pdf is inconsistent with the code in the actual exercise (01.05.03-Exercise-Segmented-Mean).
On the slide the mean_functor class is defined inline inside the function. Therefore it is missing the member variable width and does not pass the local variable width to the constructor of the functor. These differences are confusing to students.