and consider the following image which could represent the plotted data
We want to get the intermediate points between the dots (these dots comes from the data)
like the green ones in the next plot
In the plot we see 1 dot between a pair of dots (data) but we want to interpolate n values between every pair of dots so it could be 1, 2 3 or more points interpolated.
Task
from the initial data create a new set of points which adds the all interpolated data into a new set
def interpolate(self.eq_data, n):
# interpolate n dots between a pair of dots (data)
# return or save in a self.interpolated_data
# a new data with the interpolated ones
...
Use the following data
and consider the following image which could represent the plotted data
We want to get the intermediate points between the dots (these dots comes from the data) like the green ones in the next plot
In the plot we see 1 dot between a pair of dots (data) but we want to interpolate n values between every pair of dots so it could be 1, 2 3 or more points interpolated.
Task from the initial data create a new set of points which adds the all interpolated data into a new set