Replace windowed calculation examples with new code; note that the previous examples all returned an array one shorter than required; two different strategies shown for handling edge effects