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

Akima interpolation using R with NA values present: how to deal with boundaries

I have an irregularly spaced set of points and values at these coordinates that represent the sea-surface temperature throughout the ocean. I'm using interp from the akima package in R to project these onto a regularly space grid. My code is…
Dan
  • 11,370
  • 4
  • 43
  • 68
2
votes
1 answer

cgal natural neighbor interpolation

I write a module for GRASS GIS that provide natural neighbor interpolation using CGAL. I have measured points saved in vector points. Also I have a vector function_values for these points: function_values.insert(std::make_pair(Point(x,y),z)); I'd…
Adam Laža
  • 21
  • 2
2
votes
2 answers

Haskell Yesod: How to read text from file and apply variable interpolation to its content?

I have quite big markdown text hardcoded inside my handler function currently. To render it I use whamlet quasiquoter and Text.Markdown.markdown from markdown package: let md :: L.Text md = "#Some markdown stuff" authLayout $ [whamlet| …
Geradlus_RU
  • 1,466
  • 2
  • 20
  • 37
2
votes
1 answer

Problems interpolating and evaluating numpy array at arbitrary points with Scipy

I am trying to replicate some of the functionality of Matlab's interp2. I know somewhat similar questions have been asked before, but none apply to my specific case. I have a distance map (available at this Google drive…
MyCarta
  • 808
  • 2
  • 12
  • 37
2
votes
1 answer

Does scipy.interpolate.interp1d have problems with decimal values leading the x values?

I'm trying to use interp1d() from scipy to interpolate some data, but I keep hitting an out or range error. After hours of Googling, I now know that x values not in increasing order will cause the same error I'm getting but I've already made sure…
CircleSquared
  • 379
  • 2
  • 11
2
votes
2 answers

Java spatial interpolation for scattered data

I have a list of metars points (latitude, longitude, sea level pressure) and need to interpolate the pressure. I need 3D or 2D is fine? I have seen Bicubic interpolation but it seems it only works for regular grids. Here is some of the methods:…
João Azevedo
  • 343
  • 1
  • 10
2
votes
1 answer

Mapping and linking model instances in a Rails show view

I have a scenario where an album has many tracks and the tracks have the possibility to have featured artists, also know as artists. The associations are setup just fine but its mainly my view code that suffers from major verbosity: <%…
2
votes
1 answer

Unity3D Linear interpolation from V1 to moving V2

I posted this question on the stack math site, but they are not too excited to see questions including programming. Anyway, now I am here :) I have an object, which is located at MyTransform.position (Vector) That object should follow the…
Noel Widmer
  • 4,444
  • 9
  • 45
  • 69
2
votes
1 answer

Symbolically computing the input of an interpolation function?

I have a rather complicated function H(x), and I'm trying to solve for the value of x such that H(x) = constant. I would like to do this with an interpolation object generated from a discrete interval and the corresponding output of H(interval),…
2
votes
4 answers

Can I use a ternary operator with angularjs outside of the class attribute?

I'm looping through a json object with AngularJS, and having trouble dealing with nulls. I'm new to Angular. ... In the event of related being null: { "related":null } I want to put a "-1"…
user1447679
  • 3,076
  • 7
  • 32
  • 69
2
votes
1 answer

Is there a formula to turn ease in pow function into ease out?

I have a control that's used as an exponent in a pow function. This changes the values in an ease in fashion. Is there a way to turn this into an ease out mathematically? I know for example, ease in cubic is: pow(t, 3) but ease out cubic…
Joan Venge
  • 315,713
  • 212
  • 479
  • 689
2
votes
1 answer

Interpolating on a 2D grid python

I'm having small troubles to understand how to implement a cubic interpolation on a grid. I have 25 magnitude values stored on a 1D array. Each values represents the number inside a cell. Thus, the values are being showed on a 5x5 imshow image…
dudas
  • 403
  • 6
  • 23
2
votes
1 answer

Why does this linear interpolation no longer work in Python > 2.7?

I've found this script for linear interpolation in Python on Stack Overflow. It works perfectly well in Python 2.7, but fails in newer versions. Here is the code: from bisect import bisect_left class Interpolate(object): def __init__(self,…
FilthyL
  • 29
  • 1
2
votes
1 answer

Fitting 3d sigmoid to data

I have data relating to a multivariant sigmoidal function: x y r(x,y) x y r(x,y) 0.468848997 0.487599 0 0.468848997 0.512929 0 0.468848997 0.538259 0 0.468848997 0.563589 0 0.468848997 0.588918 0 0.468848997…
PyPhys
  • 129
  • 5
  • 10
2
votes
1 answer

Reverse complex 2D lookup table

I have some function which maps some input to the output . The output is a complex number. What I'm actually interested in is the inverse function . But since this inversion can't be done in a analytical way I need to do it with a numerical…
Stefan
  • 776
  • 1
  • 8
  • 17
1 2 3
99
100