Important: The stats package has been deprecated. Use the superseding package Statistics instead.
>
|
|
| (1) |
Replace each data point by the mean of itself and its two neighbors (so the size of the neighborhood is three).
| (2) |
Give more weight to the central item.
>
|
|
| (3) |
The first point is calculated by
>
|
|
if you replace by the median instead of the mean, you have:
>
|
|
| (5) |
Using 4-moving average results in
>
|
|
| (6) |
and the 4-centered average is given by
>
|
|
| (7) |