Code covered by the BSD License  

Highlights from
B-spline tools

B-spline tools

by

 

22 Mar 2010 (Updated )

Basic toolbox for polynomial B-splines on a uniform grid. OO overloading of common operators.

reverse1ordAp_simple( cp, zi )
function cn = reverse1ordAp_simple( cp, zi )
% reverse direction 1st order allpole filter
%
% The reflected input data is used as initial conditions

cn = zeros(size(cp));
cn(end) = (zi/(zi*zi-1)) * (cp(end)+zi*cp(end-1));

for n = (length(cp)-1):-1:1
    cn(n) = zi*(cn(n+1) - cp(n));
end

end

Contact us