Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
net/
Features
Multivariate interpolation from scattered data
Various interpolation methods: Linear, Akima, Bilinear, Nearest-neighbor, Natural-neighbors and
Kriging
2D Cubic Spline Approximation
Gaussian Process Regression
Scaling of non-homogeneous parameters
Array Formulas to speed up multiples interpolation
Support for missing values and errors
User defined interpolation
Visual Basic Interface
Screenshots!
1D Interpolation Input
Interpolation Example
1 of 5 12/12/2017, 8:59 PM
XonGrid Interpolation Add-in http://xongrid.sourceforge.net/
2D Example
Macros must be activated to use the add-in loader. If you are not able to activate macros, follow these
instructions to load the add-in in Excel. For the 32 bits version of Excel select XonGrid.xll and for the
64 bits version of Excel select XonGrid-w64.xll.
Interpolation Functions
Available interpolation functions and options are presented on the table below. The Kriging interpolation
with Method = 1.5 is highly recommended. Click on links for functions definition.
Interp1d
Not Applicable Method = −2 Not Available
Method = −1
Interp2dTab
Interp2d Method = −3
Method
Not Method = 0
Interp3d = 1 to 1.99
Scaling Not Available
= 0 or 1 Available Not
Interp4d Available
Distance if Scaling = 0
If parameters are non-homogeneous physical variables (e.g. Volts and kg), calculate the distance
without Scaling has no meaning. If Scaling = 1, XonGrid calculate the distance with scaled parameters
and the transform shown below is applied to each parameter.
2 of 5 12/12/2017, 8:59 PM
XonGrid Interpolation Add-in http://xongrid.sourceforge.net/
Distance if Scaling = 1
Interpolation Methods
1D Linear Interpolation (Method = −1)
XonGrid uses Ordinary Kriging interpolation with the power variogram presented below.
Kriging interpolation on a large data set requires a huge amount of memory. To prevent Excel
instabilities, the number of points is limited to 1024. Use the SubKriging optional parameter to perform
a Kriging interpolation with more than 1024 points:
If the SubKriging parameter is missing, all points will be used for Kriging interpolation.
If Scaling = 1, the distance for selection of nearest points is calculated in the scaled space (see «Scaling
of Parameters» section)
A user defined interpolation method can be implemented in the source/user-defined.c file of the
source code. The build procedure is detailed in the README file.
The declaration of these functions and three examples of usage are given in the Example-VB file.
Gaussian Process Regression is an other name of Kriging. The present implementation is more
sophisticated than the one used for interpolation. The following functions are available:
For an introduction to Gaussian Process Regression, you can read the following sections of Numerical
Recipes:
3 of 5 12/12/2017, 8:59 PM
XonGrid Interpolation Add-in http://xongrid.sourceforge.net/
The guest access to Numerical Recipes is limited to few dozen of pages per month.
XonGrid use the csa implementation of the cubic spline approximation technique. Two functions are
available:
Acknowledgements
XonGrid includes the following components:
xlw
BLAS
LAPACK
LAPACKE
nn
Triangle
csa
FAQ
Is it free ?
Yes. XonGrid is a free software. Read the license for details. Nevertheless if you have found XonGrid
really useful, I accept thanks at this address.
Interpolation is slow !
If you are performing multiple interpolation from the same data set, you should try array formulas as
shown on example files. The table below shows calculations speed up for various Kriging (β = 1.5)
interpolation cases.
Globally, bigger is the data set, better is the array formula calculation speed up.
Multi thread calculation significantly improves performance. To enable multi thread calculation, follow
these instructions. Finally, this excellent article contains everything you need to know to improve Excel
performances.
Usually, while the data contains less than approximately 200 points, performances should not be an
issue whatever is the selected interpolation method. To select an interpolation method, use the figure
below. It shows the relative characteristics of interpolation methods in a smoothness vs calculation
speed chart.
4 of 5 12/12/2017, 8:59 PM
XonGrid Interpolation Add-in http://xongrid.sourceforge.net/
Since Windows Vista and Excel 2007, it is %APPDATA%\Microsoft\AddIns. The following command
should open this folder:
explorer.exe %APPDATA%\Microsoft\AddIns
Open the add-in loader called INSTALL-XLL and click on the «Reinstall or update xll» button.
Open the add-in loader called INSTALL-XLL and click on the «Uninstall xll» button.
5 of 5 12/12/2017, 8:59 PM