The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... 
Home MathPack Math2 Procedures and Functions CalcSincBPKernel  
See also: CalcSincBSKernel, CalcSincLPKernel, CalcSincHPKernel, MovingKernelFilter  
CalcSincBPKernel 

The procedure CalcSincBPKernel calculates the coefficients of a bandpass sinc filter. The coefficients which are returned [1] in the array FilterKernel or [2] in the vector FilterKernel can be used by the function MovingKernelFilter to apply a bandpass filter to a signal. The FilterKernel structure is automatically resized to contain KLeng elements. The parameter KLeng determines the rolloff of the filter. The parameters CutOffFQ1 and CutOffFQ2 control the cutoff frequencies, which are specified as a fraction of the sampling rate. Thus the cutoff frequencies may assume values between 0 and 0.500. The two frequencies may be specified in any order, if the first frequency is higher than the second they are automatically exchanged by the routine. The following figure shows the influence of the kernel length on the rolloff at a fixed cutoff frequency (left diagram, fc1 = 0.1, fc2 = 0.35) and the rolloff of different cutoff frequencies using the same kernel length (right diagram, KLeng = 41).
The parameter Windowing determines the type of windowing applied to the filter kernel. Currently the following windowing modes are supported: 0 ... no windowing
