[docs]defphi_rep(self,F_Hz):""" function mapping roots from frequency domain to fit domain """returnF_Hz/self.F_max_Hz
[docs]defphi_rep_native_lnG(self,rB):""" function mapping roots to native domain (S) from fit representation domain outputs both the remapped roots, as well as the lnG adjustment """rB=self.RBalgo.expect(rB,self.RBalgo.root_constraints.mirror_imag)lnG=len(rB)*np.log(2*np.pi*self.F_max_Hz)returnrB*(2j*np.pi*self.F_max_Hz),lnG
[docs]defphi_native_rep_lnG(self,rB):""" function mapping roots from native domain (S) to fit representation domain outputs both the remapped roots, as well as the lnG adjustment """rB=self.RBalgo.expect(rB,self.RBalgo.root_constraints.mirror_real)lnG=len(rB)*np.log(2*np.pi*self.F_max_Hz)returnrB*(-1j/(2*np.pi*self.F_max_Hz)),-lnG
[docs]defphi_rep_Snative(self,rB):""" Maps the internal representation to Snative, the output RootBunch can have a specialty constraint added. """rB=self.RBalgo.expect(rB,self.RBalgo.root_constraints.mirror_imag)returnrB*(2j*np.pi*self.F_max_Hz)