Questions tagged [extrapolation]

extrapolation is a method of constructing new data points outside the range of a discrete set of known data points

Extrapolation is a method of constructing new data points outside the range of a discrete set of known data points.

197 questions
0
votes
0 answers

How to extrapolate with scipy

I am trying to predict my uncompleted distribution function tail with scipy.interpolate.interp1d, but ı can not get expected results, ı have tried some parameters of the scipy function but it failed. The below graph may be show my real aim, ı want…
0
votes
1 answer

How to extrapolate object position and rotation into the future/past?

Lets say we have the homogenous transformation matrix of the position and rotation of a camera for n different points in time. We also have m different images taken by this camera, which weren't neccecarily taken at the same instant the htm data was…
0
votes
0 answers

How to backward generate levels from flows when both are in seperate dataframes in R?

I have two dataframes. The first one called 'sw_flows_final' contains data of flows between sectors from 1952-2019. The second one is called 'sw_stocks' and contains data of stocks of what each sector owes the other from 2011-2019. I want to…
0
votes
1 answer

R: Extrapolating x no. of values beyond known values

I'm looking for a function/method to extrapolate (linearly) for an x number of values beyond the original values. Let's say I start with: a <- c(NA, NA, NA, NA, NA, NA, 1, 2, 3, NA, NA, NA, NA, NA, NA) And I want to extrapolate two values beyond, I…
Jeroen
  • 85
  • 1
  • 1
  • 6
0
votes
0 answers

Adding empty rows to a multi index panel in python

Add an empty row to MultiIndex DataFrame I want to refer to this link. How could I add the column idx_2 and its content r_1, r_2, r_3 to the new added row 'bar'? I want to do a linear extrapolation after adding empty rows to my multi index panel.
0
votes
1 answer

Extrapolate capped values in heat matrix

I have a number of heatmaps (example below), from each of which I extract a value matrix. My problem is that, in the images, values above a certain threshold (in this case 200) are capped at that threshold and shown as a fuschia color. I'm trying to…
justry
  • 173
  • 1
  • 1
  • 8
0
votes
1 answer

linearly extrapolate pandas dataframe using built-in interpolate method

Consider the following dataframe: df = pd.DataFrame([np.nan, np.nan,1, 5,np.nan, 6, 6.1 , np.nan,np.nan]) I would like to use the pandas.DataFrame.interpolate method to linearly extrapolate the dataframe entries at the starting and ending rows,…
rhz
  • 960
  • 14
  • 29
0
votes
1 answer

javascript : extrapolate an array of numbers

I have to plot a graph based on the data values v/s time {x-axis= time[] ,y-axis = data1[]}. I want to extrapolate this array and then plot the graph . I used the following code is this the correct way to do so? function interpolateArray(data,…
minu
  • 1
  • 2
0
votes
0 answers

C# XY Chart, get y value based on x value

I have 2d chart which is consisted from well known points and now I want to get y value for some desired x. I want to call method where I pass x value and method will return y value. Is there any lib which can help me to achieve this? Here is…
subavet995
  • 139
  • 14
0
votes
1 answer

How do I implement linear extrapolation in gnuplot?

Can't make correct linear extrapolation. Here is the graph. Here is the graph It is clear that the extrapolation should decrease, because there are points on the left at the top, and on the right, everything is at the bottom, and there are many of…
0
votes
1 answer

Extrapolate in log scale on y axis

x = [0,1,2,3,4,5,6,7] y = [0.07, 0.05, 0.03, 0.02, 0.01, 0.005, 0.002, 0.0007] I want to find what x is when y= 0.000001 and I tried below but it gives me a wrong value. 10^(interp1(log10(y),x,10^-6, 'linear','extrap')) Also, would linear…
B. Z.
  • 129
  • 11
0
votes
0 answers

How to extrapolate points of a regular grid in python

I have a numpy array of points and want to extend my point (x, y and z) in a defined direction. This is my array: coordinates=np.array([[1., 19., 4.], [2., 19., 4.5], [1., 20., 4.],[2., 20., 4.5], [3., 20., 4.]]) These points are on two y grids: 19…
Ali_d
  • 1,089
  • 9
  • 24
0
votes
0 answers

How to extrapolate some points in a 3D sapce in python

I have some points in 3d and want to do a sort of extrapolation on them. My points are in a regular x and y grid and have some splits. I want to extraploate points beyond the splits. I copied a simplified data set having three splits. I extrapolate…
Ali_d
  • 1,089
  • 9
  • 24
0
votes
1 answer

Interpolating between curves using SciPy

Here is my plot: The existing curves are functions obtained using interp1d and I have the raw data as well. How can I extrapolate to get a curve for 71.5 and interpolate to get a curve for 44.3 using SciPy?
0
votes
1 answer

Extrapolating in R without using Hmisc

The answer for this previous question: extrapolate in R for a time-series data does not work for me due to R versions. I have a dataframe NEI_othertier1_long that looks similar to like this: state pollutant Sector Fuel description …
Maridee Weber
  • 231
  • 1
  • 8