Beispiel #1
0
 def plotError(self):
     if self.status < Status.DECODED:
         raise ValueError(f"The current status {self.status.name} doesn't allow the use of plotError()")
     
     fig_title = 'Error between the reconstructed signal and the original signal'
     
     plotAny(self.t, self.computeError(), fig_title)
Beispiel #2
0
 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 - FRI sampler'
     
     plotAny(self.t, self.u_rec, self.dt, fig_title, True)
Beispiel #3
0
 def plotSpikes(self):
     if self.status < Status.ENCODED:
         raise ValueError(f"The current status {self.status.name} doesn't allow the use of plotSpikes()")
     
     fig_title = 'Spikes resulting from an Integrate-and-Fire - KernelBased sampler encoding'
     
     plotAny(self.t, self.spikes_signal, fig_title, spikes = True)
Beispiel #4
0
 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 - FRI sampler'
     
     plotAny(self.t, self.u, fig_title, True)