![]()  | 
  
    LASP 1.0
    
   Library for Acoustic Signal Processing 
   | 
 
Frequency weighting and calibration FIR filter. More...
Public Member Functions | |
| __init__ (self, fw=FreqWeighting.default, nchannels=1, fs=48000., calfile=None) | |
| Initialize the frequency weighting and calibration FIR filters.   | |
| filter_ (self, data) | |
| Filter data using the calibration and frequency weighting filter.   | |
| frpCalObj (self, freq_design) | |
| Computes the objective frequency response of the calibration filter.   | |
| frpWeightingObj (self, freq_design) | |
| Computes the objective frequency response of the frequency weighting filter.   | |
| frpObj (self, freq_design) | |
| Combines the frequency weighting and the calibration filter into one frequency response objective function.   | |
| freqResponse (self, chan=0, freq=None) | |
| Returns the frequency response of the designed FIR filter.   | |
Public Attributes | |
| nchannels | |
| fs | |
| fw | |
| calfile | |
Protected Attributes | |
| _firs | |
| _fbs | |
| _freq_design | |
Frequency weighting and calibration FIR filter.
Definition at line 16 of file lasp_weighcal.py.
| lasp.lasp_weighcal.WeighCal.__init__ | ( | self, | |
fw = FreqWeighting.default,  | 
        |||
nchannels = 1,  | 
        |||
fs = 48000.,  | 
        |||
calfile = None  | 
        |||
| ) | 
Initialize the frequency weighting and calibration FIR filters.
Args: fw: Frequency weighting to apply nchannels: Number of channels for the input data fs: Sampling frequency [Hz] calfile: Calibration file to load.
Definition at line 21 of file lasp_weighcal.py.
| lasp.lasp_weighcal.WeighCal.filter_ | ( | self, | |
| data | |||
| ) | 
Filter data using the calibration and frequency weighting filter.
Args: data: (Weighted) raw time data that needs to be filtered, should have the same number of columns as the number of channels. First axis is assumed to be the time axis
Retuns: Filtered data for each channel
Definition at line 62 of file lasp_weighcal.py.
| lasp.lasp_weighcal.WeighCal.freqResponse | ( | self, | |
chan = 0,  | 
        |||
freq = None  | 
        |||
| ) | 
Returns the frequency response of the designed FIR filter.
Definition at line 139 of file lasp_weighcal.py.
| lasp.lasp_weighcal.WeighCal.frpCalObj | ( | self, | |
| freq_design | |||
| ) | 
Computes the objective frequency response of the calibration filter.
Definition at line 88 of file lasp_weighcal.py.
| lasp.lasp_weighcal.WeighCal.frpObj | ( | self, | |
| freq_design | |||
| ) | 
Combines the frequency weighting and the calibration filter into one frequency response objective function.
Definition at line 127 of file lasp_weighcal.py.
| lasp.lasp_weighcal.WeighCal.frpWeightingObj | ( | self, | |
| freq_design | |||
| ) | 
Computes the objective frequency response of the frequency weighting filter.
Definition at line 112 of file lasp_weighcal.py.
      
  | 
  protected | 
Definition at line 51 of file lasp_weighcal.py.
      
  | 
  protected | 
Definition at line 50 of file lasp_weighcal.py.
      
  | 
  protected | 
Definition at line 60 of file lasp_weighcal.py.
| lasp.lasp_weighcal.WeighCal.calfile | 
Definition at line 39 of file lasp_weighcal.py.
| lasp.lasp_weighcal.WeighCal.fs | 
Definition at line 36 of file lasp_weighcal.py.
| lasp.lasp_weighcal.WeighCal.fw | 
Definition at line 37 of file lasp_weighcal.py.
| lasp.lasp_weighcal.WeighCal.nchannels | 
Definition at line 35 of file lasp_weighcal.py.