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
1 answer

Interpolation search out of range

This is a piece of Wikipedia's sample implementation of interpolation search: public int interpolationSearch(int[] sortedArray, int toFind){ // Returns index of toFind in sortedArray, or -1 if not found int low = 0; int high =…
2
votes
3 answers

Interpolation of scattered data: What could I do?

I'm working on a 3D chart in Java using Java 3D. It should be able to display a bunch of measured values. As measured, the data I get is scattered. This means I will have to interpolate the missing points in order to get my surface plotted nicely.…
Simon
  • 9,255
  • 4
  • 37
  • 54
2
votes
1 answer

JavaScript cosine interpolation

I'm building an Indicated Airspeed instrument with JavaScript that gets data from X-Plane via a WebSocket. The airspeed is received in knots, and needs to be plotted on the instrument, which has a non-linear scale. An array, called intervals keeps a…
josef.van.niekerk
  • 11,941
  • 20
  • 97
  • 157
2
votes
1 answer

Python - Equivalent to scipy griddata because of an error

I would like to use an equivalent to scipy griddata because of an error appears : QH7074 qhull warning: more than 16777215 ridges. ID field overflows and two ridges may have the same identifier. Otherwise output ok. which sometimes kill my…
user3601754
  • 3,792
  • 11
  • 43
  • 77
2
votes
3 answers

What interpolation technique does Matlab plot function use to show the data?

It seems to be very basic question, but I wonder when I plot x values against y values, what interpolation technique is used behind the scene to show me the discrete data as continuous? Consider the following example: x = 0:pi/100:2*pi; y =…
Ress
  • 667
  • 1
  • 7
  • 24
2
votes
1 answer

How to make a simple grafical interface in C# for DCRAW

i have a problem. I need to make a simple GUI in Visual Studio 2008 using C Sharp that uses a Dave Coffins DCRAW written in C but I don't know how to "connect" dcraw.c (DCRAW source code) file with Csharp... UFRAW is the example of grafical…
2
votes
1 answer

Wrapping interpolation with quotes

range_array = (0..100).to_a range_array.each do |number| p %-

Dell Shitbox

- end Result: "

Dell Shitbox

" Desired result:

Dell Shitbox

I have…
softcode
  • 4,358
  • 12
  • 41
  • 68
2
votes
2 answers

ExtendedInterpolation() in the Python 2.7 ConfigParser

I have Python script written in 3.x version which I need to transform in 2.7 due to environment limitations. I managed to refactor most of the syntax difs and module imports but I came across one line which I do not know how to handle: def…
gbarzu
  • 45
  • 1
  • 6
2
votes
1 answer

Interpolate values in a 2D Python numerical dictionary

I have Python dictionaries that look like this: a = {0.0 : {0.0: 343, 0.5: 23, 1.0: 34, 1.5: 9454, ...}, 0.5 : {0.0: 359, 0.5: -304, ...}, ...} So they are 2D dictionaries that resemble 2D grids of m * n elements. The values are evenly distributed,…
flotr
  • 165
  • 1
  • 1
  • 8
2
votes
3 answers

Ruby Method Name Interpolation

I am trying to reduce the amount of code in on of my Ruby Classes by Iterating through a constant hash in order to produce al the wanted methods with a reduced amount of coding. Here is my code (Please feel free to add additional pointers as I'm new…
HermannHH
  • 1,732
  • 1
  • 27
  • 57
2
votes
1 answer

How to cut image with fraction pixels in Matlab?

Is it possible to cut part of an image in Matlab, so that the cut lines were in fractional pixel position? Would like to have it in imwarp function contract, i.e. including imref2d class to designate image world dimensions. I would like cutted…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
2
votes
1 answer

Grid of values from a table in python

I would like to create a grid-like group of variables in python from a table (e.g., one text file) for an N-dimensional dataset. Suppose my data have the following format. column_x = [x0, x1, x2, ..., xN] column_y = [y0, y1, y2, ..., yN] column_z…
Álvaro
  • 1,219
  • 2
  • 12
  • 20
2
votes
1 answer

Trilinear Interpolation - Vectorising without Scipy

I am looking to vectorize this piece of code but don't know where to begin. There has been another answer on this site answering a similar question to mine: 3D interpolation of NumPy arrays without SciPy , but I was confused as to how to implement…
2
votes
2 answers

numpy arange with multiple intervals

i have an numpy array which represents multiple x-intervals of a function: In [137]: x_foo Out[137]: array([211, 212, 213, 214, 215, 216, 217, 218, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950]) as you can see, in x_foo are two…
2
votes
1 answer

plotting convergence of genetic algorothm

I am using genetic algorithm in MATLAB to do a two objective optimization problem. I want to know is there any way to plot the population at each generation in a 3d volume? I mean, (f1,f2,n) where f1 is the value of the first objective which i want…
1 2 3
99
100