Interpolation Method: Solving Missing Data

AI Thread Summary
The discussion focuses on the need for an interpolation method to fill in missing temperature data from a time series, considering not only adjacent values but also temperatures from the same time on previous and next days. Polynomial interpolation was initially attempted, but the user seeks a more complex approach that incorporates multiple functions for better accuracy. Suggestions include trigonometric interpolation, although the user notes that their data does not exhibit periodic behavior. The idea of combining polynomial interpolation with additional calculations from other data points is also explored. Ultimately, the user is looking for a robust method that effectively integrates various data sources for interpolation.
danutz
Messages
2
Reaction score
0
hi i need some help with a problem I'm dealing with
i have a text file of this format
01 08 2002 12 45 26.7
01 08 2002 13 00 27.8
01 08 2002 13 15 27.0
01 08 2002 13 30 28.2
the last being the temperature and i need to interpolate some missing elements using not only the values before and after that elem but also the previous and next day temperatures (meaning if i wanted to interpolate the second row i would need to use the 1st the third and the values at 13:00 in the previous and next day for example) i would really appreciate if someone could tell me which method to use
ps:i used a polynomial interpolation so far
 
Mathematics news on Phys.org
Hi danutz! :smile:

Because the solution must be periodic, I guess that trigonometric interpolation could give you something good: http://en.wikipedia.org/wiki/Trigonometric_interpolation

But note, if you use the sine functions, then you will be periodic with period 2\pi. If you want to be periodic with period T (for example, 24h), then you will have to use

f(x)=\sin(\frac{2\pi}{T}x)

instead of the sine.
 
thanks i looked through it but my function won't be a periodic function but one that has somehow random values so it cannot be defined like f(x)=...
i need a method that doesn't interpolate only by the interp polynomial but also by some other values(the temperatures in other days at the same hour) i think it's more like having more than one function and for interpolating f(x0) i need g(x0) and h(x0) and f(points i use to make the polynomial interpolation, x1 x2 ...)

or is it ok to make the polyn interpolation, obtain an f(x0) and just to make some calculus like 3/4f(x0)+ (h(x0)+g(x0))/2/4??
 
Last edited:
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...
Thread 'Imaginary Pythagoras'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top