Skip to content

a basic representation of spline and Newtonian interpolation with performance test using Transcendental functions- using python

Notifications You must be signed in to change notification settings

SireJeff/interpolationTechniques

Repository files navigation

Interpolation Techniques

A collection of Python scripts for implementing and comparing various interpolation techniques.

Contents

  1. Overview
  2. Requirements
  3. Installation
  4. Usage
  5. Scripts
  6. Contributing
  7. License

Overview

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.

Requirements

  • Python 3.x
  • NumPy
  • SciPy
  • Matplotlib

Installation

  1. Clone the repository:

    git clone https://github.com/SireJeff/interpolationTechniques
  2. Install the required dependencies:

    pip install -r requirements.txt

Usage

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.

Scripts

1. Cubic Spline Interpolation

  • Script Name: cubic_spline_interpol.py
  • Description: Demonstrates cubic spline interpolation for various functions.

2. Quadratic Spline Interpolation

  • Script Name: quadratic_spline_interpol.py
  • Description: Implements quadratic spline interpolation for different functions.

3. Newtonian Interpolation

  • Script Name: newtonian_interpol.py
  • Description: Illustrates Newtonian interpolation for selected functions.

4. Polar Interpolation using PchipInterpolator

  • Script Name: polar_interpol.py
  • Description: Performs polar interpolation using PchipInterpolator.

5. Performance Comparison

  • Script Name: compare_performance.py
  • Description: Compares the performance of cubic spline, quadratic spline, and Newtonian interpolation.

Contributing

Feel free to contribute by submitting issues, feature requests, or pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

a basic representation of spline and Newtonian interpolation with performance test using Transcendental functions- using python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published