示例#1
0
 def plotRecoveredSignalAndSpikes(self):
     if self.status < Status.DECODED:
         raise ValueError(f"The current status {self.status.name} doesn't allow the use of plotRecoveredSignalAndSpikes()")
     
     fig_title = 'Signal encoded then decoded with an Integrate-and-Fire - KernelBased sampler (with spikes)'
     
     plotSignalAndSpikes(self.t, self.u_rec, self.spikes_timings, fig_title)
示例#2
0
 def plotSignalAndSpikes(self):
     if self.status < Status.ENCODED:
         raise ValueError(f"The current status {self.status.name} doesn't allow the use of plotSignalAndSpikes()")
     
     fig_title = 'Signal encoded with an Integrate-and-Fire - FRI sampler (with spikes)'
     
     plotSignalAndSpikes(self.t, self.u, self.spikes_timings, fig_title)