def __init__(self, smoothing, *args, **kw): """Initializer. INPUTS: -- smoothing: Smoothing parameter between 0 and 1 to use in doing exponential average. -- *args, **kw: Passed to CovEstimator.__init__. """ self.smoothing = smoothing self.state = None CovEstimator.__init__(self, *args, **kw)
def __init__(self, *args, **kw): "Initializer just passes args onto CovEstimator.__init__." CovEstimator.__init__(self, *args, **kw)
def Startup(self, query): "Reset state on startup" _ignore = query self.state = None CovEstimator.Startup(self, query) # call parent version too