I find it difficult to deal with the methods of the mat. analysis through reference books. Did I understand correctly in the most general sense what interpolation and extrapolation are:
interpolator = (array[i] + array[i+1]) / 2; потом мы его суём между array[i] и array[i+1]; extrapolator = (array[i-2] + array[i-1] / 2); и мы его суём на место уже array[i]. I sketched the code myself, as I could .. As the most primitive method of approximating the value of points, I chose an arithmetic average between them ..
