{"categories":[{"label":"Mathematics","url":"https://skillfed.io/packages/category/scientific-engineering-mathematics/3"}],"enrichment":{"capability":"Performs shape-preserving piecewise rational cubic interpolation using the Delbourgo-Gregory algorithm, maintaining monotonicity and convexity of interpolated curves.","skillfed_tags":["numerical-methods","interpolation","scientific-computing"],"use_cases":["Interpolating financial time-series data while preserving monotonicity in yield curves or volatility surfaces.","Reconstructing smooth curves from scattered measurements in engineering or physics where convexity must be maintained.","Building smooth interpolants for optimization problems where derivative information is available at sample points.","Fitting curves through data with known monotonicity constraints, such as cumulative distributions or calibration curves."],"what_it_does":"piecewise-rational implements the Delbourgo-Gregory algorithm for rational cubic interpolation, a method that constructs smooth curves through data points while preserving shape properties like monotonicity and convexity. Unlike standard polynomial splines, rational cubic interpolation uses rational functions (ratios of polynomials) within each interval, offering better control over curve behavior and the ability to fit second derivatives through a control parameter.\n\nThe package provides a single core function, rational_cubic_interpolation, that takes an x-coordinate to evaluate, the interval endpoints, endpoint values, endpoint derivatives, and a control parameter, returning the interpolated y-value. It has no external runtime dependencies and installs as a pure Python wheel, making it lightweight for integration into numerical or scientific workflows where shape preservation matters more than standard smoothing.","worth_installing":"Yes, if you need shape-preserving rational cubic interpolation and have endpoint derivatives available. The package is lightweight, permissively licensed, and implements a well-established algorithm. However, it is aging (no updates since initial release) and has minimal adoption; consider it only if standard cubic splines or other interpolation libraries do not meet your shape-preservation requirements."},"id":"piecewise-rational","links":{"html":"https://skillfed.io/packages/piecewise-rational","md":"https://skillfed.io/packages/piecewise-rational.md","pypi":"https://pypi.org/project/piecewise-rational/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2026-01-13","license_spdx":null,"license_treatment":"permissive","name":"piecewise-rational","python_support":"supports_current","summary":"Shape-preserving piecewise rational cubic interpolation (Delbourgo-Gregory algorithm)"},"popularity":{"monthly_downloads":158134,"position":10734,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.0"}
