def __init__(self, th=0): """ CTOR @param th Decision threshold. """ ThresholdAlgorithm.__init__(self, th) Logger.register('energy_decision', ['energy', 'decision']) self._xx = {}; self._xx[0] = {0: "00", 1: "01"} self._xx[1] = {0: "10", 1: "11"}
def __init__(self, threshold, waveforms=WAVEFORMS): """ CTOR @param threshold Decision threshold @param waveforms Array of known patterns """ ThresholdAlgorithm.__init__(self, threshold=threshold) self._waveforms = waveforms Logger.register('waveform_decision', ['decision', ]) self._xx = {}; self._xx[0] = {0: "00", 1: "01"} self._xx[1] = {0: "10", 1: "11"}
def __init__(self, Np, P, L, th=0): """ CTOR @param Np @param P @param L @param th Decision threshold. """ ThresholdAlgorithm.__init__(self, th) Logger.register('cyclo_decision', ['decision', ]) from opera import cyclo_fam_calcspectrum_vcf self._algorithm = cyclo_fam_calcspectrum_vcf(Np, P, L) self._xx = {}; self._xx[0] = {0: "00", 1: "01"} self._xx[1] = {0: "10", 1: "11"}