def producesignal(self): Pnoise = constant.kb*self.det.temp*self.det.bw Vnoise = np.sqrt(constant.impedance*Pnoise) signal = utils.wf_normal(0,Vnoise,len(self.time)) envelope = utils.func_normedgauss(self.time,self.sigtime,self.siglenth) self.signal = envelope*self.snr*signal
def producenoise(self): Pnoise = constant.kb*self.det.temp*self.det.bw Vnoise = np.sqrt(constant.impedance*Pnoise) self.noise = utils.wf_normal(0,Vnoise,len(self.time))