Code covered by the BSD License
-
baryinv(x, y, xi, c)
BARYINV 1-D barycentric interpolation with inverse distance weighting
-
cakima(x, y, xi)
CAKIMA 1-D piecewise cubic Akima interpolation
-
cbezier(x, y, xi)
CBEZIER 1-D piecewise cubic Bezier spline interpolation
-
chermite(x, y, yp, xi, c)
CHERMITE 1-D piecewise cubic Hermite spline
-
cosint(x, y, xi)
COSINT 1-D piecewise cosine interpolation
-
cubiconv(x, y, xi)
CUBICONV Cubic convolution interpolation
-
divdiff(x, y, yp, ypp)
DIVDIFF Divided differences.
-
expint(x, y, xi)
EXPINT 1-D piecewise exponential interpolation
-
floaterhormann(x, y, xi, c)
FLOATERHORMANN Rational interpolation using the Floater-Hormann Method
-
hermint(x, y, yp, xi, c)
HERMINT 1-D piecewise hermite interpolation
-
interpdct(x,ny,dim)
INTERPDCT 1-D interpolation using DCT method
-
lagint(x, y, xi, c)
LAGINT 1-D piecewise lagrange interpolation
-
mqspline(x, y, yp, xi, c)
MQSPLINE 1-D piecewise monotone quadratic spline interpolation
-
neville(x, y, xi)
NEVILLE Interpolation using Neville's Method
-
newtint(x, y, xi, c)
NEWTINT Interpolation of equally-spaced points.
-
qhermite(x, y, yp, ypp, xi, v...
QHERMITE 1-D piecewise quintic Hermite spline
-
rchermite(x, y, yp, xi, r, c)
RCHERMITE 1-D piecewise rational cubic Hermite spline
-
said(x, y, xi, chi, eta, c)
SAID 1-D piecewise Said interpolation
-
schwerner(x, y, xi, p, q)
SCHWERNER Rational interpolation using the Schneider-Werner Method
-
shermite(x, y, yp, ypp, yppp,...
SHERMITE 1-D piecewise septic Hermite spline
-
sincdint(x, y, xi, c)
SINCDINT 1-D piecewise discrete sinc interpolation
-
sincint(x, y, xi, c, win)
SINCINT 1-D piecewise sinc interpolation
-
trigint(x, y, xi, c)
hRIGINT 1-D piecewise trigonometric interpolation
-
View all files
from
Interpolation Utilities
by Joe Henning
A variety of interpolation utilities
|
| expint(x, y, xi)
|
function yi = expint(x, y, xi)
% EXPINT 1-D piecewise exponential interpolation
% EXPINT(X,Y,XI) interpolates to find YI, the values of the
% underlying function Y at the points in the array XI, using
% piecewise exponential interpolation. X and Y must be
% vectors of length N.
% Joe Henning - Fall 2012
n = length(x);
for i = 1:length(xi)
% Find the right place in the table by means of a bisection.
klo = 1;
khi = n;
while (khi-klo > 1)
k = fix((khi+klo)/2.0);
if (x(k) > xi(i))
khi = k;
else
klo = k;
end
end
h = x(khi) - x(klo);
if (h == 0.0)
fprintf('??? Bad x input to expint ==> x values must be distinct\n');
yi(i) = NaN;
continue;
end
% Evaluate exponential
yi(i) = y(klo)*(y(khi)/y(klo))^((xi(i)-x(klo))/h);
end
|
|
Contact us