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".

TIP Use the JavaScript console to see the table format.

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: I am Daniel BP.

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