I have noisy data (from bluetooth indoor positioning system), which I will filter with Kalman filter, but after that I want to fit a curve into it.
The problem that I have is that the data is positioning data, and the object being tracked is making sharp turns and it has quite fast acceleration and deacceleration. Between the turns the object being located usually is using a straight track.
For example fitting a cubic spline does not give me a good approximation since the curve leaves far away from the sharp (angle) turn.
I am quite familiar with Bezier curves and I know that if I put the one control point behind of the sharp turn, then I can squeeze the curve quite close to it. But not close enough. I do not have enough data points for that.
Does anyone have any tips or tricks that I could use?
Note: I am not looking for interpolation. I am looking for an approximation.
You could consider a piecewise interpolation scheme where you detect the turning points of the trajectory by some criterion. Then perform curve fitting of your choice (such as linear or Bezier) with the points between turning points, and extend them up to the intersections.