0
$\begingroup$

Suppose I have data like red points below

enter image description here

I would like to interpolate/resample these points at black ticks.

At right the points are sparse and it is obvious to interpolate them linearly or with higher order polynomial.

But at left side points are denser, than ticks, so it seems to be wrong to interpolate them with any of this, because plot will jump and provide random values at ticks (green line). It looks better to average them near ticks first and then interpolate.

Is there any method/algorithm to do this automatically in case when data is both dense and sparse in different places?

$\endgroup$
  • $\begingroup$ If you're fitting the noise on the left (and so need some smoothing to fix that problem), aren't you also fitting the noise on the right? $\endgroup$ – Glen_b Dec 11 '18 at 10:21
  • $\begingroup$ Is this time series data? $\endgroup$ – user2974951 Dec 11 '18 at 10:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.