Code covered by the BSD License  

Highlights from
Filter Signal

image thumbnail

Filter Signal

by

 

14 Feb 2014 (Updated )

Design a filter where an existing speech or audio signal using user-designed LPF, HPF or BPF

Dinfinity( deltap,deltas )
function [ dinf ] = Dinfinity( deltap,deltas )
%Dinfinity: compute Dinfinity for optimal FIR lowpass filter
% inputs:
%   deltap: passband ripple (linear scale)
%   deltas: stopband ripple (linear scale)
%
% ouput:
%   dinf: evaluation of Dinfinity

% compute Dinfinity
    log_deltap=log10(deltap);
    log_deltas=log10(deltas);
    dinf=(5.309e-3*log_deltap^2+7.114e-2*log_deltap-0.4761)*log_deltas - ...
        (2.66e-3*log_deltap^2+0.5941*log_deltap+0.4278);
end

Contact us