I want to get a polynomial scalar field that interpolate z
as a function of x
and y
.
# consider an integer k,
# then the goal is that a called function f(x[k],y[k])
# would approximate z[k].
# abscissa example with dummy values
x = [1,2,3,4,1,2,3,4,1,2,3,4]
#ordinate example with dummy values
y = [1,1,1,1.1,2,2,2.1,2,3,3,3,3.2]
# example with dummy values
# to be interpolated as a function of x and y
z = [10,11,12,13,10,11,12,13,10,11,12,13]
How to achieve this ?
For instance, getting the coefficients of the x^n, y^m, x^n y^m would be fine, where n and m are integers.
The goal is then that for any input x-value and y-value (not contained in x
and y
in the code above), an approximated z-value is obtained with the interpolation.
I have read several post about interpolation in Julia, but they seem to focus purely on linear interpolation of function (and not field).