I have found few radial basis functions like BasisExpansionFunction
, Surrogates.jl
, ScatteredInterpolation
in Julia.
However, I am unable to replicate the results from python's scipy.interpolate.rbf()
function.
Python Example
from scipy.interpolate import Rbf
import numpy as np
xs = np.arange(10)
ys = xs**2 + np.sin(xs) + 1
interp_func = Rbf(xs, ys) # By default RbF uses Multiquadratic function
newarr = interp_func(np.arange(2.1, 3, 0.1))
print(newarr)
What is correct approach to replicate the above example in Julia?