Skip to content

MelihCan9/Interpolation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Interpolation

Interpolation Algorithms with Covid-19 data-sets from Ministry of Health of Turkey.

Direct Method Interpolation

I used scipy lib to get the result faster. And the direct method interpolation method gets 3 parameters as the x points and and the y value corresponding to x and the data_point that we want to interpolate. After executing the method, I plotted the results like;

image

Lagrange Interpolation

Here in this method I am interpolating with the lagrange method, this method also gets the same parameters as direct method but here I did not use a built-in function because implementing the lagrange formula is easier to implementing the direct method formula in python. And finally, I again plotted the results like:

image

NDDP Interpolation

To be honest this method was the hardest method to implement and I got some help from lecture notes of course. Also I would like to mention that I am using an another method in this method called get_coeff() to get coefficients. And also finally I plotted the results of this method:

image

To compare the methods:

The Lagrange and the NDDP methods are getting the same result always as we know. And here I got the same results from these two methods as well but the direct method is a linear graph so the direct method gets the worst approximate results within these three methods.

About

Interpolation Algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published