def plotPsiKernel(self): if self.status < Status.HAS_SIGNAL: raise ValueError(f"The current status {self.status.name} doesn't allow the use of plotPhiKernel()") fig_title = 'Psi kernel' plotSignalAndFourier(self.t_phi_kernel, self.psi_kernel, self.dt, fig_title)
def plotSignal(self): if self.status < Status.HAS_SIGNAL: raise ValueError(f"The current status {self.status.name} doesn't allow the use of plotSignal()") fig_title = 'Signal to be encoded with an Integrate-and-Fire - KernelBased sampler' plotSignalAndFourier(self.t, self.u, self.dt, fig_title)
def plotRecoveredSignal(self): if self.status < Status.DECODED: raise ValueError(f"The current status {self.status.name} doesn't allow the use of plotRecoveredSignal()") fig_title = 'Signal encoded then decoded with an Integrate-and-Fire - KernelBased sampler' plotSignalAndFourier(self.t, self.u_rec, self.dt, fig_title)
def plotFilter(self): if self.status < Status.HAS_SIGNAL: raise ValueError(f"The current status {self.status.name} doesn't allow the use of plotFilter()") fig_title = 'Flipped Phi filter' plotSignalAndFourier(self.t_E_spline, self.flipped_filter, self.dt, fig_title)