I need to smooth xy co-ordinates. see the image:
In this case, i need to remove 5,6,7,8 and 9th co-ordinates or need to make those co-ordinates as a straight line between 4th and 5th. is there any logic to do this?
It doesen't seem to be smoothing but rather removing of outliers you are looking for. Maybe you will find some help in this discussion: What algorithm should I use to remove outliers in trace data?