I have a sparsely populated array like the following. Is there an algorithm that can fill in all the blanks with values that make sense linearly? ie. deduced from the surrounding original values.
I've looked at bilinear interpolation and bicubic interpolation, but are there any others?
| 1 | 2 | 3 | 4 | 5 | 6 | 7
---------------------------------------------------------------------------------
1 |
2 |
3 | 55
4 | 50 12 6
5 | 45 19
6 | xxx
7 | 35 45 50 yyy
8 |
9 |
10 |
11 |
12 | zzz
13 |
14 |
15 |
For example, I would expect xxx to be in the vicinity of 40, and yyy to be in the vicinity of 50. zzz however might have a more random value. Note though: I'd like to populate every single blank space, not just xxx, yyy and zzz. And to be able to do so for any sparsely populated array.
Does such an algorithm exist?