Height points approximation by different interpolation methods written in Python using pandas, numpy and matplotlib.
Program compare two methods of interpolation:
- spline interpolation
- lagrange interpolation (with and without chebyshev nodes)
It compares them by printing approximated function.
In yaml file, you can configurate path to csv file with given functions and number of nodes to approximate function (take every x node).
main_params:
filepath: './data/MountEverest.csv' # path for file
step: 21 # get every step'th point
- Spline interpolation:
- Lagrange interpolation with evenly spaced 20 nodes, which cause Runge's phenomenon:
- Lagrange interpolation with 20 Chebyshev nodes: