I post this just for general information, I compare 2 ways to plot a average curve : - The first by convolution with a cardinal sinus, which constitutes a low pass filter (exactly a brick-wall filter). - the second is a moving average (which is a convolution with a rectangle).
The first way requires a little more calculation but is still very fast (less than a second for 20,000 points with a Windows PC, .NET framwork, CPU: i5 6th generation) it gives a smoother curve and no less significant The second is more speed but leave artifacts which are due to edge effects with the convolution window edge.