Supporting material to: Shape preserving interpolation with arbitrary smoothness based on mollification

Published: 15 July 2026| Version 1 | DOI: 10.17632/dsfjwzsdhv.1
Contributors:
,
,

Description

This archive contains the example datasets, implementations of the rational splines and P-spline methods, along with code to reproduce the benchmark and the generate the figures in the publication "Shape preserving interpolation with arbitrary smoothness based on mollification". Archive structure ----------------- - `interp.py`: implementation of the interpolation methods - `benchmark.py`: program that benchmarks the interpolation code - `plots.py`: program that generates the figures of the article - `proofs.py`: mathematical proofs in [SymPy][1] of some results used to implement the rational splines - `shell.nix`: [Nix][2] expression that builds a reproducible environment to run the programs

Files

Steps to reproduce

To build the Python environment required to run the programs in a reproducible way, we recommend installing [Nix][3]. Otherwise, you may try to install Python 3 and manually add the packages listed in `shell.nix`. 1. Run `nix-shell` in the unpacked archive directory; 2. Run `python <program>.py` in the newly opened shell; 3. Check the results: - `benchmark.py` prints the benchmark results to stdout; - `plots.py` saves the figures in the the working directory as PDF files; - `proofs.py` will simply exit cleanly if no error occurred.

Institutions

Departments

Department of Physics “G. Occhialini”

Categories

Software, Interpolation, Numerical Algorithm, Spline

Licence