Adding z to interpolation
journeytosilius opened this issue · comments
Hi, thanks for the lib !
I do this on python and trying to port it to C++ now:
# Interpolate
rbf = scipy.interpolate.Rbf(x, y, z, function='linear')
zi = rbf(xi, yi)
the scipy interpolate function accepts up to four inputs for the interpolation, in my case I'm using x,y and z
Is it possible to replicate this with rbf_interpolator.SetData()
?
Thanks
Yes. The method SetData()
takes X
and y
as inputs. The input X
is a matrix where each column represents a data point. This can include any number of data points. This is similar to scipy https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.RBFInterpolator.html .