parameters: (cls, *system, **kwargs)
return_statement: return super(dlti, cls).__new__(cls)
docstring: Create an instance of the appropriate subclass.
docstring_summary: Create an instance of the appropriate subclass.
docstring_tokens: Create an instance of the appropriate subclass .
function: def __new__(cls, *system, **kwargs):
          """Create an instance of the appropriate subclass."""
          if cls is dlti:
              N = len(system)
              if N == 2:
                  return TransferFunctionDiscrete.__new__(
                      TransferFunctionDiscrete, *system, **kwargs)
              elif N == 3:
                  return ZerosPolesGainDiscrete.__new__(ZerosPolesGainDiscrete,
                                                        *system, **kwargs)
              elif N == 4:
                  return StateSpaceDiscrete.__new__(StateSpaceDiscrete, *system,
                                                    **kwargs)
              else:
                  raise ValueError("`system` needs to be an instance of `dlti` "
                                   "or have 2, 3 or 4 arguments.")
          # __new__ was called from a subclass, let it call its own functions
          return super(dlti, cls).__new__(cls)
function_tokens: def __new__ ( cls , * system , * * kwargs ) : if cls is dlti : N = len ( system ) if N == 2 : return TransferFunctionDiscrete . __new__ ( TransferFunctionDiscrete , * system , * * kwargs ) elif N == 3 : return ZerosPolesGainDiscrete . __new__ ( ZerosPolesGainDiscrete , * system , * * kwargs ) elif N == 4 : return StateSpaceDiscrete . __new__ ( StateSpaceDiscrete , * system , * * kwargs ) else : raise ValueError ( "`system` needs to be an instance of `dlti` " "or have 2, 3 or 4 arguments." ) # __new__ was called from a subclass, let it call its own functions return super ( dlti , cls ) . __new__ ( cls )