(self, feedback, init)
Initialise the signal source.
Initialise the signal source.
Initialise the signal source .
def __init__(self, feedback, init):
        """Initialise the signal source."""
        self._lfsr = init
        self._feedback = feedback
        # "remaining phase"/pi, i.e. runs 0 to 1 or 0 to -1 on half wavelength
        self.phase = 0.
        self.bit = 0
def __init__ ( self , feedback , init ) : self . _lfsr = init self . _feedback = feedback # "remaining phase"/pi, i.e. runs 0 to 1 or 0 to -1 on half wavelength self . phase = 0. self . bit = 0