Fixed triang and blackman to match standard MATLAB/Octave implementations