PCHIP -- root solve

Fit a PCHIP spline through a data set and then compute the roots of the spline
82 téléchargements
Mise à jour 4 mars 2017

Afficher la licence

% [tRoot, vRoot, ppx, ppv] = getPchipRoots(t,x)
%
% This function computes a PCHIP spline through the data set x(t) and then
% finds the roots of the spline.
%
% INPUTS:
% t = [1,n] = monotonically increasing vector of time stamps
% x = [1,n] = data at each time stamp = x(t)
%
% OUTPUTS:
% tRoot = [1,k] = monotonically increasing vector corresponding to the
% time at which each root occurs. Empty if no roots exist.
% vRoot = [1,k] = derivative of the interpolant at each of the roots.
% ppx = Matlab pp-form (PCHIP) spline that interpolates x(t)
% ppv = Matlab pp-form spline that is the derivative of x(t)
%
% NOTES:
% -- roots are computed numerically using Ridder's Method.
%

Citation pour cette source

Matthew Kelly (2026). PCHIP -- root solve (https://fr.mathworks.com/matlabcentral/fileexchange/61883-pchip-root-solve), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2015b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Splines dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.0.0.0