python - How to perform extrapolation in 2D with scipy.interpolate.RBFInterpolator? - Stack Overflow

This wonderful SO answer by @AndrasDeak claims that 2D scipy.interpolate.RBFInterpolator can extrapolat

This wonderful SO answer by @AndrasDeak claims that 2D scipy.interpolate.RBFInterpolator can extrapolate, but it doesn't say how. Since I know that SciPy has unique extrapolation commands for each of its interpolators, I have been looking for the way extrapolation is embedded into 2D scipy.interpolate.RBFInterpolator and failed to find one. The only thing I could find is this "tips and tricks" article which suggests a complicated do-it-yourself extrapolation technique. I can't believe I'm stuck with this scary do-it-yourself thing because the referenced SO post explicitly states that RBFInterpolator can extrapolate.

With that in mind, is there a simple way to make 2D RBFInterpolator extrapolate the data (like for example, in the case of Akima1DInterpolator we set the argument "extrapolate" to True or in the case of interp1d we set the argument "fill_value" to extrapolate)?

This wonderful SO answer by @AndrasDeak claims that 2D scipy.interpolate.RBFInterpolator can extrapolate, but it doesn't say how. Since I know that SciPy has unique extrapolation commands for each of its interpolators, I have been looking for the way extrapolation is embedded into 2D scipy.interpolate.RBFInterpolator and failed to find one. The only thing I could find is this "tips and tricks" article which suggests a complicated do-it-yourself extrapolation technique. I can't believe I'm stuck with this scary do-it-yourself thing because the referenced SO post explicitly states that RBFInterpolator can extrapolate.

With that in mind, is there a simple way to make 2D RBFInterpolator extrapolate the data (like for example, in the case of Akima1DInterpolator we set the argument "extrapolate" to True or in the case of interp1d we set the argument "fill_value" to extrapolate)?

Share edited Mar 4 at 0:23 Nick ODell 25.8k7 gold badges46 silver badges88 bronze badges asked Mar 3 at 23:43 Ivan NepomnyashchikhIvan Nepomnyashchikh 472 silver badges7 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

With that in mind, is there a simple way to make 2D RBFInterpolator extrapolate the data?

There's a very simple way. :) If you call RBFInterpolator normally, it will allow you to extrapolate outside of the points you've given it.

RBFInterpolator doesn't make a distinction between interpolation and extrapolation. With a method like griddata(), there is a clear line (or a clear hyperplane, har har) between what is interpolation and what is extrapolation. With RBF the distinction is not meaningful.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745067692a4609353.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信