Smooth g Downsample (average X and Y)

This will reduce the number of elements in a data set by taking their average. It will also smooth the look of the data set, by compromising the resolution. You have to specify the number by which the number of data points will be reduced. For example, if a downsample-by-3 is performed then the following action will take place:

Xnew,1 = (Xold,1 + Xold,2 + Xold,3) / 3

Ynew,1 = (Yold,1 + Yold,2 + Yold,3) / 3

Xnew,2 = (Xold,4 + Xold,5 + Xold,6) / 3

Ynew,2 = (Yold,4 + Yold,5 + Yold,6) / 3

So with a downsample factor of three, the resolution, or number of data points, will be reduced by a a factor of three as well.

The picture above is for a clear demonstration only, because it shows exactly why you would not want to use downsample: the peak gets distorted. However, when your original plot has enough data points, downsampling can actually clean up a plot quite a bit without distorting it too much, as the pictures below show.

 
Downsampling usually smooths out a noisy plot