'(re-)set to the initial state'

def initialize(self):

    self.countiter = 0
    self.xcurrent = self.xstart[:]
    raise NotImplementedError('method    initialize()    must    be    implemented    in    derived    class')
