class_docstr: Class representing a simple nonlinear least squares model.
docstr: Do an iteration of fit
  
  Returns
  -------
  None
docstr_tok: ["Do","an","iteration","of","fit","Returns","--","--","--","-","None"]
code: def __next__(self):
      """Do an iteration of fit
  
      Returns
      -------
      None
      """
      if self._iter < self.niter:
          self.getZ()
          self.getomega()
          Zpinv = npl.pinv(self._Z)
          self.theta = np.dot(Zpinv, self.Y - self._omega)
      else:
          raise StopIteration
      self._iter += 1
  
file_path: nipy/nipy/algorithms/statistics/models/nlsmodel.py
imports: import numpy
  import numpy.linalg
  from .model import Model
label_desc: Use image node_id 9 for calling the NLSModel obj's underlying member method code with example usage: obj.__next__() without return types