def __init__(self, fc): "fc is the LO frequency divided by the sample rate" self._w = cmath.rect(1, -fc * 2 * math.pi) self._v = complex(1)