Interpolation Method: Solving Missing Data

Click For 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:
Here is a little puzzle from the book 100 Geometric Games by Pierre Berloquin. The side of a small square is one meter long and the side of a larger square one and a half meters long. One vertex of the large square is at the center of the small square. The side of the large square cuts two sides of the small square into one- third parts and two-thirds parts. What is the area where the squares overlap?

Similar threads

  • · Replies 1 ·
Replies
1
Views
703
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 65 ·
3
Replies
65
Views
7K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
7K
  • · Replies 10 ·
Replies
10
Views
26K