Exemple #1
0
    def calc_hf(self):
        """
        (Re-)Calculate the complex frequency response H(f)
        """

        # calculate H_cmplx(W) (complex) for W = 0 ... 2 pi:
        self.W, self.H_cmplx = calc_Hcomplex(fb.fil[0], params['N_FFT'], True)
Exemple #2
0
    def calc_hf(self):
        """
        (Re-)Calculate the complex frequency response H(f)
        """

        # calculate H_cmplx(W) (complex) for W = 0 ... 2 pi:
        self.W, self.H_cmplx = calc_Hcomplex(fb.fil[0], params['N_FFT'], True)
Exemple #3
0
 def calc_hf(self):
     """
     (Re-)Calculate the complex frequency response H(f)
     """
     # calculate H_cplx(W) (complex) for W = 0 ... 2 pi:
     self.W, self.H_cmplx = calc_Hcomplex(fb.fil[0], params['N_FFT'], wholeF=True)
     # replace nan and inf by finite values, otherwise np.unwrap yields
     # an array full of nans
     self.H_cmplx = np.nan_to_num(self.H_cmplx) 
Exemple #4
0
 def calc_resp(self):
     """
     (Re-)Calculate the complex frequency response H(f)
     """
     # calculate H_cplx(W) (complex) for W = 0 ... 2 pi:
     self.W, self.H_cmplx = calc_Hcomplex(fb.fil[0], params['N_FFT'], wholeF=True)
     # replace nan and inf by finite values, otherwise np.unwrap yields
     # an array full of nans
     self.H_cmplx = np.nan_to_num(self.H_cmplx)