I Solve Lagrange Interpolation Problem with Pen Position Detection

AI Thread Summary
The discussion revolves around improving pen position detection using Lagrange interpolation in a digitizer that measures antenna energy. The user faces challenges when the pen is positioned between two antennas, resulting in similar energy values that limit the curve's responsiveness. Suggestions include exploring splines for better control over the curve's shape, although the user prefers to enhance the Lagrange method first. The conversation highlights the limitations of Lagrange interpolation in capturing non-linear relationships and the potential benefits of more complex interpolation methods. Overall, the goal is to achieve more accurate pen position detection by refining the interpolation approach.
Nihi
Messages
2
Reaction score
0
Hi all

I am facing a problem and I hope that you can give me a hand. Here I describe the situation

I am working on a digitizer that can detect the pen position by measuring the antennae energy that are placed in a grid fashion. To get the x coordinate of the pen I measure the energy of three antennae where the pen is supposed to be and then I interpolate this 3 energy-value with Lagrange algorithm.
Finally I determine the pen coordinate by finding the highest f(x) of the curve using a loop.

With Lagrange method it approximates pretty well the actual relationship position-energy but it's not linear.

So here is the problem: when the pen is in the middle of two antennae I get 2 similar energy value whereas the 3rd is lower then these latter, so the highest point of the curve remains about the same when I move the pen around the middle position of 2 antennae. The result is that when the pen crosses these middle points it moves slowly because there is not much changes in the curve which is limited by these 2 similar energy-value.

Is it possible to introduce a factor that changes the curve making it more narrow at the highest point? it's just a thought, I appreciate any solution.

Xcoordinate_Table_M.jpg


In the picture you can see the measurement and the coordinate calculated through Lagrange algorithm. I hope that someone can help me. Thank you!
 
Mathematics news on Phys.org
Hey Nihi.

Have you ever heard of splines before?
 
chiro said:
Hey Nihi.

Have you ever heard of splines before?

Thank you Chiro.
Yes I had. I want to remain with Lagrange and see if I can improve the current result but I will try Spline to see if get better.
 
Lagrange just fits the curve without any sort of information on how it changes (even though they still interpolate between the points).

Splines and more complex structures (like NURBS) allow fine-grained control on what happens outside of the interpolation points.

It's a lot more complex but it gives you those extra options in what happens to the curve.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...

Similar threads

Back
Top