parameters: (cls, domain=None, window=None)
return_statement: return cls(coef, domain, window)
docstring: Identity function.
  
          If ``p`` is the returned series, then ``p(x) == x`` for all
          values of x.
  
          Parameters
          ----------
          domain : {None, array_like}, optional
              If given, the array must be of the form ``[beg, end]``, where
              ``beg`` and ``end`` are the endpoints of the domain. If None is
              given then the class domain is used. The default is None.
          window : {None, array_like}, optional
              If given, the resulting array must be if the form
              ``[beg, end]``, where ``beg`` and ``end`` are the endpoints of
              the window. If None is given then the class window is used. The
              default is None.
  
          Returns
          -------
          new_series : series
               Series of representing the identity.
docstring_summary: Identity function.
docstring_tokens: Identity function .
function: def identity(cls, domain=None, window=None):
          """Identity function.
  
          If ``p`` is the returned series, then ``p(x) == x`` for all
          values of x.
  
          Parameters
          ----------
          domain : {None, array_like}, optional
              If given, the array must be of the form ``[beg, end]``, where
              ``beg`` and ``end`` are the endpoints of the domain. If None is
              given then the class domain is used. The default is None.
          window : {None, array_like}, optional
              If given, the resulting array must be if the form
              ``[beg, end]``, where ``beg`` and ``end`` are the endpoints of
              the window. If None is given then the class window is used. The
              default is None.
  
          Returns
          -------
          new_series : series
               Series of representing the identity.
  
          """
          if domain is None:
              domain = cls.domain
          if window is None:
              window = cls.window
          off, scl = pu.mapparms(window, domain)
          coef = cls._line(off, scl)
          return cls(coef, domain, window)
function_tokens: def identity ( cls , domain = None , window = None ) : if domain is None : domain = cls . domain if window is None : window = cls . window off , scl = pu . mapparms ( window , domain ) coef = cls . _line ( off , scl ) return cls ( coef , domain , window )