LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches
lasp.filter.decimation_fir Namespace Reference

Author: J.A. More...

Variables

int L = 128
 
int fs = 48000.
 
int d = 4
 
int fd = fs/d
 
int fc = fd/2/1.5
 
 fir = lowpass_fir_design(L, fs, fc)
 
 fig = plt.figure()
 
 ax = fig.add_subplot(111)
 
 freq = np.logspace(1, np.log10(fs/2), 1000)
 
 H = freqResponse(fs, freq, fir)
 
int dBH = 20*np.log10(np.abs(H))
 
 color
 
 fn_index = np.where(freq <= fd/2)[0][-1]
 
 dBHmax_above_Nyq = np.max(dBH[fn_index:])
 

Detailed Description

Author: J.A.

de Jong - ASCEE

Description: Decimation filter design.

Variable Documentation

◆ ax

lasp.filter.decimation_fir.ax = fig.add_subplot(111)

Definition at line 23 of file decimation_fir.py.

◆ color

lasp.filter.decimation_fir.color

Definition at line 30 of file decimation_fir.py.

◆ d

int lasp.filter.decimation_fir.d = 4

Definition at line 15 of file decimation_fir.py.

◆ dBH

int lasp.filter.decimation_fir.dBH = 20*np.log10(np.abs(H))

Definition at line 28 of file decimation_fir.py.

◆ dBHmax_above_Nyq

lasp.filter.decimation_fir.dBHmax_above_Nyq = np.max(dBH[fn_index:])

Definition at line 36 of file decimation_fir.py.

◆ fc

int lasp.filter.decimation_fir.fc = fd/2/1.5

Definition at line 18 of file decimation_fir.py.

◆ fd

int lasp.filter.decimation_fir.fd = fs/d

Definition at line 17 of file decimation_fir.py.

◆ fig

lasp.filter.decimation_fir.fig = plt.figure()

Definition at line 22 of file decimation_fir.py.

◆ fir

lasp.filter.decimation_fir.fir = lowpass_fir_design(L, fs, fc)

Definition at line 20 of file decimation_fir.py.

◆ fn_index

lasp.filter.decimation_fir.fn_index = np.where(freq <= fd/2)[0][-1]

Definition at line 34 of file decimation_fir.py.

◆ freq

lasp.filter.decimation_fir.freq = np.logspace(1, np.log10(fs/2), 1000)

Definition at line 25 of file decimation_fir.py.

◆ fs

int lasp.filter.decimation_fir.fs = 48000.

Definition at line 13 of file decimation_fir.py.

◆ H

lasp.filter.decimation_fir.H = freqResponse(fs, freq, fir)

Definition at line 27 of file decimation_fir.py.

◆ L

int lasp.filter.decimation_fir.L = 128

Definition at line 12 of file decimation_fir.py.