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.

mirroridx(idx,M)
function idx = mirroridx(idx,M)
    % Mirror an index value around 1 and M
    
    idx = abs1(mod(idx + M - 3, 2*M - 2) - M + 3);
end

function y = abs1(x)
    y = abs(x-1) + 1;
end

Contact us