Function Smooth-Hanning

Part of:

package cl-mathstats
( smooth-hanning < data > )
Smooths `data' by replacing each element with the weighted mean of it and its two neighbors. The weights are 1/2 for itself and 1/4 for each neighbor. The ends are handled by duplicating the end elements. This function is not destructive; it returns a list the same length as `data,' which should be a sequence of numbers.