Questions tagged [interpolation]

Anything related to function interpolation, i.e. the mathematical techniques for estimating the (unknown) value of a function in a point on the basis of a set of known values in other (usually nearby) points. For interpolation of strings, see the [string-interpolation] tag.

Anything related to function interpolation, i.e. the mathematical techniques for estimating the (unknown) value of a function in a point on the basis of a set of known values in other (usually nearby) points.

See Wikipedia on interpolation.

In scientific software for statistical computing and graphics, function approx implements linear interpolation and function spline implements cubic spline interpolation.

For interpolation of strings, see .

5155 questions
2
votes
0 answers

Spatial interpolation with Copula

I was wondering if anyone knows about a library for spatial interpolation using Copulas in Python. I have already tried the copulalib and consequently ambhas, but none of them are suited for spatial interpolation. A reference to the problem can be…
2
votes
1 answer

Interpolate Z values in a 3D surface, starting from an irregular set of points

I have a surface that looks like Figure A, imagine that is top view. The surface has calculated Z value. Now I need to find all Z values in new points like figure B. How to do this? I tried scipy.interpolate.interp2d but it gives some weird…
sevatster
  • 133
  • 1
  • 3
  • 11
2
votes
1 answer

Cubic spline implementation in Matlab

I have two vectors, x and y that are defined(at random) as follows: x1=[1000 3000 5000 6000 4000 2000 500 0 -1000 -3000 -5000 -6000 -4000 -2000 -500 1 999 2999 4999]; y1=[5000 4999 4990 3500 2500 2499 2498 2497 2496 2495 2494 1000 -1000 -999…
Bilal Hussain
  • 73
  • 1
  • 6
2
votes
1 answer

Python: is it possible to interpolate a matrix in a MATLAB style?

I have difficulty to interpolate a matrix/data frame in python. Suppose we I have a matrix M = 3x4 and x = [1 3 5], y = [0.1 0.4 0.5 0.7] This is my way to do interpolate and then plot in Matlab. xq = 1:1:5; yq = 0.1:0.1:1; [xq,yq] =…
emax
  • 6,965
  • 19
  • 74
  • 141
2
votes
0 answers

GLSL, how are interpolateAtSample/Offset supposed to work?

I have this question now since a long time, I can't get a simple multisample example running.. This is the original code, this is the vs and this the fs, that I report here for convenience: layout(location = POSITION) in vec2…
elect
  • 6,765
  • 10
  • 53
  • 119
2
votes
1 answer

Trying to resize an image to a thumbnail, getting error "Use of unresolved identifier" for kCGInterpolationHigh

Trying to resize an image to a thumbnail using the following code, getting error: Use of unresolved identifier for kCGInterpolationHigh @IBAction func dropPhoto(sender: AnyObject) { presentViewController(imagePicker, animated: true,…
Coe
  • 21
  • 1
2
votes
1 answer

How to delay angularJS interpolation intentionally

Say I have the below html:
{{name}}
I want to delay the interpolation on {{name}}, so that I can see the curly bracket on html(raw data). My first thought is to create an attribute directive called pause, and in the compile function of…
doranT
  • 167
  • 3
  • 11
2
votes
1 answer

julia - Interpolations.jl throws "ERROR: InexactError()" for vector, not for point

I'm interpolating over a 2d matrix J: J_itp = interpolate(J, (BSpline(Linear()), NoInterp()), OnGrid()) As you see, I'm only interpolating along the first dimension. The 2nd dimension is required to be on the grid. I have a vector of points I'd…
benten
  • 1,995
  • 2
  • 23
  • 38
2
votes
2 answers

Contour plot data (lat,lon,value) within boundaries and export GeoJSON

I'm trying to interpolate data within boundaries and plot contour lines (polygons) based on Latitude, longitude, value data from csv files. Results I want print as geojson. I'm stuck on the basic contour plot from csv. I really appreciate help…
seek
  • 1,065
  • 16
  • 33
2
votes
3 answers

Interpolating a data point on a curve with a negative slope

Hi I have two numpy arrays (in this case representing depth and percentage depth dose data) as follows: depth = np.array([ 0. , 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1. , 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, …
Trigfa
  • 65
  • 1
  • 7
2
votes
1 answer

Interpolate TO a grid FROM random points

I have a series of coordinates that represent data in a 2D scalar field: x[i], y[i], F[i]. However, x[i] and y[i] are not on a rectilinear grid, they are "randomly" placed. I want to interpolate f[i] so I can estimate its value on a rectilinear…
user3533030
  • 359
  • 3
  • 17
2
votes
1 answer

Does GLSL have a built in bilinear interpolation function?

This is what I am doing now. Is there a built-in function that does this? The documentation is cumbersome and I haven't found something like that. vec4 biLerp(vec4 a, vec4 b, vec4 c, vec4 d, float s, float t) { vec4 x = mix(a, b, t); vec4 y =…
user1146657
  • 194
  • 3
  • 15
2
votes
2 answers

Getting numpy linspace generated coordinates

I'm using NumPy's linspace to fill in data between points. lats = (-66.44421,-66.57947,-64.81464,-64.69528) lons = (-73.03290,-72.73904,-64.71657,-65.03036) NO3 = (33.48,24.01,17.20,20.03) xi = np.linspace(min(lats),max(lats),360) yi =…
leon yin
  • 829
  • 3
  • 10
  • 23
2
votes
3 answers

2D interpolation at random distributed grid-points

I have a set of data-points for the value of z depending on x and y. I am searching for some method in order to interpolate zi for the for xi, yi. The problem is that x and y are not distributed in an orthogonal grid. Instead the grid-points x and y…
BerndGit
  • 1,530
  • 3
  • 18
  • 47
2
votes
0 answers

avoid loop matlab in 2D bspline surface interpolation

I want to speed up my code. I always use vectorization. But in this code I have no idea how to avoid the for-loop. I would really appreciate a hint how to proceed. thank u so much for your time. close all clear clc % generating sample data x =…
PHS
  • 21
  • 2