A collection of Python scripts for implementing and comparing various interpolation techniques.
This repository contains Python scripts demonstrating different interpolation techniques, including cubic spline interpolation, quadratic spline interpolation, Newtonian interpolation, and polar interpolation using PchipInterpolator. Additionally, it includes a script for comparing the performance of these techniques.
- Python 3.x
- NumPy
- SciPy
- Matplotlib
-
Clone the repository:
git clone https://github.com/SireJeff/interpolationTechniques
-
Install the required dependencies:
pip install -r requirements.txt
Navigate to the repository directory and run the desired script using the following command:
python script_name.py
Replace script_name.py
with the name of the script you want to execute.
- Script Name:
cubic_spline_interpol.py
- Description: Demonstrates cubic spline interpolation for various functions.
- Script Name:
quadratic_spline_interpol.py
- Description: Implements quadratic spline interpolation for different functions.
- Script Name:
newtonian_interpol.py
- Description: Illustrates Newtonian interpolation for selected functions.
- Script Name:
polar_interpol.py
- Description: Performs polar interpolation using PchipInterpolator.
- Script Name:
compare_performance.py
- Description: Compares the performance of cubic spline, quadratic spline, and Newtonian interpolation.
Feel free to contribute by submitting issues, feature requests, or pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.