I have a grid of ocean depth data by location, and am trying to interpolate depth values for a selection of GPS points. We've been using RSAGA::pick.from.points, which works fine for small data sets. require(RSAGA) depthdata <- cbind.data.frame(x=c(74.136, 74.135, 74.134, 74.133, 74.132, 74.131, 74.130, 74.129, 74.128, 74.127), y=rep(40, times=10), depth=c(-0.6,...

I have x = linspace(-5,5,256) y = 1./(1+x.^2) plot(x,y,'...') %plot of (x,y) I want to estimate this with a polynomial of order 10, such that the polynomial intersects the graph at 11 points. So, I did this: x2 = linspace(-5,5,11) y2 = 1./(1+x2.^2) p = polyfit(x2,y2,10) %finds coefficients of polynomial...

I have a non-gui application where I want to asynchronously interpolate some data over time. I had a look at the JavaFX Transition API and it looked ideal. However, for the transitions API to work it has to be run as part of a JavaFX application context - which I...

I am trying to instantiate a Scipy Interpolate RectBivariateSpline as follows: import numpy as np from scipy.interpolate import RectBivariateSpline x = np.array([1,2,3,4]) y = np.array([1,2,3]) vals = np.array([ [4,1,4], [4,2,3], [3,7,4], [2,4,5] ]) print(x.shape) # (4,) print(y.shape) # (3,) print(vals.shape) # (4, 3) rect_B_spline = RectBivariateSpline(x, y, vals) However, it...

The Matlab function interpn does n-grid interpolation. According to the documentation page: In a future release, interpn will not accept mixed combinations of row and column vectors for the sample and query grids. This page provides a bit more information but is still kind of cryptic. My question is this:...