10:16 AM
Potentially a bit of a trivial question, but say I want to use MeanFilter[y,1] on a dataset y of n elements, but it should exclude 1 single point: n = 100. What I mean by this is that point n = 100 should not be averaged over by neighbouring points, nor should it be averaged itself; point 99 should disregard point 100 and look at 101 instead (and vice versa), and point 100 should just stay point 100. Is there an easy way to do this? And does it generalize to mean filters like MeanFilter[y,50]?
Or, now that I write it all out, I suppose one just defines a dataset with point 100 dropped, applies the mean filter, and reinserts point 100.
Just have to think about where point 100 is after applying the MeanFilter
You can disregard that last comment; I made a typo in the code. I can just reinsert it at position 100.