Skip to content

Height points approximation by different interpolation methods

Notifications You must be signed in to change notification settings

Chotom/Height-points-approximation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Height-points-approximation

Height points approximation by different interpolation methods written in Python using pandas, numpy and matplotlib.

Table of contents

Description

Program compare two methods of interpolation:

  • spline interpolation
  • lagrange interpolation (with and without chebyshev nodes)

It compares them by printing approximated function.

Settings

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

Examples

  • Spline interpolation:

spline interpolation

  • Lagrange interpolation with evenly spaced 20 nodes, which cause Runge's phenomenon:

spline interpolation

  • Lagrange interpolation with 20 Chebyshev nodes:

spline interpolation

About

Height points approximation by different interpolation methods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages