swh:1:snp:d91631a580497fff421f83ef3e706159a0d67602
Tip revision: 1771db2c7d8df804c0f871c3208d0ad3b971d53b authored by Marko Laine on 19 November 2018, 17:37:47 UTC
modified publish stylesheet
modified publish stylesheet
Tip revision: 1771db2
xquad.m
function I=xquad(x,y)
%XQUAD Integrate discrete data using Hermite spline.
% I=XQUAD(X,Y)
% Marko Laine <marko.laine@fmi.fi>
% $Revision: 1.5 $ $Date: 2012/09/27 11:47:40 $
% Old version using Hermite spline from the nms library.
% I = dpchqa(x,y,dpchez(x,y,0.0),min(x),max(x));
pp = pchip(x,y);
I = quad(@(z) ppval(pp,z),min(x),max(x));