Table data interpolation JavaScript library

This small page was developed to test an algorithm that will be included in other programs, it allows you to perform a linear interpolation from bi-dimensional arrays (tables).

To explain the concept and usage, nothing better than an example: Suppose we have a table with the calories (Z) from the food based in the percentage of sugar (rows=X) and fat (columns=Y) as indicated in the table. We might want to know the calories from intermediate points, not listed.



The interpolation for the table above would give the following results for the amounts of fat and sugar entered:
You can try the interpolation by generating a table and entering the data in the interface below. You can use any non-numeric symbol to express the non-tabulated data, for example: "null".

This application does 100% of the calculations in the user browser by using JavaScript. The library code can be found here: interpolizer.js and the example of usage in the source of this page.

Please visit my website for more resources: www.danbp.org. I am Daniel Brooke Peig.



Blue row = Y Values
Yellow column = X Values
White cells = Z Values