Questions tagged [linear-interpolation]

Linear interpolation is the process of approximating intermediate values given an assumption that the ranges of missing data look roughly like straight lines.

Linear interpolation is largely used for its simplicity and is typically more effective given a greater density of data. The more complex the underlying relationship of the quantities involved, the less likely linear interpolation is to provide a good value estimates.

In scientific software for statistical computing and graphics, function approx performs 1D linear interpolation.

437 questions
0
votes
1 answer

How to use linear interpolation of average monthly data containing 12 values to generate 365 day data at exact midpoints?

Linear interpolation in python is possible by the function pandas.interpolate. However it does not support decimal indexing and we have to round off to the nearest integer index. As January has 31 days, the exact mid point value is 15.5. In python,…
0
votes
1 answer

How to linear interpolate the x, y, and z between two points?

Lets say at start time 0s I have point_1(10,20,35) and at end time 10s I have point_2(20,40,50) How would I go about using linear interpolation to find where a point would be at time 5s? I want to do this by hand without using any python libraries.…
hinsonan
  • 53
  • 8
0
votes
1 answer

Vue interpolation does not work in the text obtained by API

Get text by API, in text have a entities in {{}}, like a: Some text {{rules}} other text Have in data values: rules: "some text" but this values dont interpolated, displays: Some text {{rules}} other text thanks for answer
Siviy
  • 69
  • 1
  • 7
0
votes
2 answers

is there a programming / math term for what the linear() function does in After Effects?

Adobe After Effects (an animation / compositing app) has a scripting language (Expressions) that's based on JavaScript, and it comes with a bunch of After Effects-specific functions built on top of JS. The function linear() is one of these. It…
0
votes
1 answer

What are the best libraries and approaches to interpolate between uniformly distributed sensors over a floor plan?

My goal is to build a temperature gradient map over a floor plan to display minute changes in temp. via uniformly distributed sensors. As far as I understand most heatmap tools available work with point density to produce heatmaps whereas what I'm…
0
votes
1 answer

Linear interpolation of two vector arrays with different lengths

I have two curves. One handdrawn and one is a smoothed version of the handdrawn. The data of each curve is stored in 2 seperate vector arrays. Time Delta is also stored in the handdrawn curve vector, so i can replay the drawing process and so that…
Chris
  • 79
  • 1
  • 8
0
votes
1 answer

Finding nearest values (top and bottom) for given value

I have dataset which contains Value and DateTime and another dataset which represent timeline. Timeline in this case consist rounded times each apart by 15 minutes, but it can be 30 or 60 minutes... I would like calculate linear interpolation for…
Carl900
  • 15
  • 4
0
votes
1 answer

how to linearly interpolate monthly data from the 15th of each month that rolls over the 15th of the next month

I have a monthly dataset that I want to interpolate daily. However I need to interpolate from the 15th of each month or midmonth (Jan 16th, Feb 14th, March 15th...), to the next one. Here is my data set: 2000-01-31 0.02451 2000-02-28 …
Lau
  • 7
  • 5
0
votes
1 answer

Linear interpolation by multiple groupings in R

I have the following data set: District Type DaysBtwn Start_Day End_Day Start_Vol End_Vol 1 A 0 3 0 31 28 23 2 A …
chels2015
  • 11
  • 2
0
votes
1 answer

Matlab integrate of fitted "linearinterp" returning error "First input argument must be a function handle"

Trying to get the integral of some experimentally collected data. After using the envelope and abs functions I'm using the fit function to get the equation I wish to integrate (unfortunately 'poly' isn't giving a close enough fit to the…
user2587726
  • 169
  • 2
  • 11
0
votes
1 answer

Finding multiple interpolated x-values from a function that is not invertible

I am trying to find two interpolated x-values of a function found where a threshold is crossed. I have tried switching the x and y values as proposed in previous answers to similar questions; however, this only returns one of the two x-values I…
Erica
  • 1
  • 2
0
votes
1 answer

How to generate a line with exact number of points?

I have to generate a path from a dataset of n points. I am plotting a cubic spline through the points in this dataset. The generated path must contain an exact number of projected path-points. My problem is not with the plotting of the curve but…
0
votes
1 answer

Merging two Dataframes in Python, linear interpolating Dates from one Dataframe to the other

I have 2 different Dataframes. One is a list of "Values" that have a date, and a value. The second Dataframe is a dataframe of dates, that lie in between the dates of Dataframe 1. I want to merge the 2 Dataframes and interpolate the values from…
Alex Walton
  • 173
  • 3
  • 17
0
votes
0 answers

Resample 2 vector array in Matlab and output in same dimension

How can I resample my [t x] matrix and fill the gap of resampled data with interpolation data in Matlab? Input is the upper signal output is lower signal in the image.The output should be [tout xout] with similar dimensions to [t x]. The middle…
Jomer
  • 3
  • 3
0
votes
1 answer

Bilinear interpolation anomaly

I wrote a function that takes the subpixels of an image for the purpose of upscaling, and the subpixel is generated by bilinear interpolation, but I am having some weird artifacts. Here is my code: public static int getSubPixel(BufferedImage bi,…