optic.dsp.core.lowPassFIR

lowPassFIR(fc, fs, N, typeF='rect')

Calculate FIR coefficients of a lowpass filter.

Parameters:
  • fc (float) – Cutoff frequency.

  • fs (float) – Sampling frequency.

  • N (int) – Number of filter coefficients.

  • typeF (string, optional) – Type of response (‘rect’, ‘gauss’). The default is “rect”.

Returns:

h – Filter coefficients.

Return type:

np.array

References

[1] P. S. R. Diniz, E. A. B. da Silva, e S. L. Netto, Digital Signal Processing: System Analysis and Design. Cambridge University Press, 2010.