3030TransferFunction._common_den
3131_tfpolyToString
3232_addSISO
33- convertToTransferFunction
33+ _convertToTransferFunction
3434
3535"""
3636
@@ -261,7 +261,7 @@ def __add__(self, other):
261261
262262 # Convert the second argument to a transfer function.
263263 if not isinstance (other , TransferFunction ):
264- other = convertToTransferFunction (other , inputs = self .inputs ,
264+ other = _convertToTransferFunction (other , inputs = self .inputs ,
265265 outputs = self .outputs )
266266
267267 # Check that the input-output sizes are consistent.
@@ -303,10 +303,10 @@ def __mul__(self, other):
303303
304304 # Convert the second argument to a transfer function.
305305 if isinstance (other , (int , float , long , complex )):
306- other = convertToTransferFunction (other , inputs = self .inputs ,
306+ other = _convertToTransferFunction (other , inputs = self .inputs ,
307307 outputs = self .inputs )
308308 else :
309- other = convertToTransferFunction (other )
309+ other = _convertToTransferFunction (other )
310310
311311 # Check that the input-output sizes are consistent.
312312 if self .inputs != other .outputs :
@@ -350,7 +350,7 @@ def __div__(self, other):
350350 implemented only for SISO systems." )
351351
352352 # Convert the second argument to a transfer function.
353- other = convertToTransferFunction (other )
353+ other = _convertToTransferFunction (other )
354354
355355 num = polymul (self .num [0 ][0 ], other .den [0 ][0 ])
356356 den = polymul (self .den [0 ][0 ], other .num [0 ][0 ])
@@ -435,7 +435,7 @@ def zero(self):
435435 def feedback (self , other , sign = - 1 ):
436436 """Feedback interconnection between two LTI objects."""
437437
438- other = convertToTransferFunction (other )
438+ other = _convertToTransferFunction (other )
439439
440440 if (self .inputs > 1 or self .outputs > 1 or
441441 other .inputs > 1 or other .outputs > 1 ):
@@ -650,16 +650,16 @@ def _addSISO(num1, den1, num2, den2):
650650
651651 return num , den
652652
653- def convertToTransferFunction (sys , ** kw ):
653+ def _convertToTransferFunction (sys , ** kw ):
654654 """Convert a system to transfer function form (if needed).
655655
656656 If sys is already a transfer function, then it is returned. If sys is a
657657 state space object, then it is converted to a transfer function and
658658 returned. If sys is a scalar, then the number of inputs and outputs can be
659659 specified manually, as in:
660660
661- >>> sys = convertToTransferFunction (3.) # Assumes inputs = outputs = 1
662- >>> sys = convertToTransferFunction (1., inputs=3, outputs=2)
661+ >>> sys = _convertToTransferFunction (3.) # Assumes inputs = outputs = 1
662+ >>> sys = _convertToTransferFunction (1., inputs=3, outputs=2)
663663
664664 In the latter example, sys's matrix transfer function is [[1., 1., 1.]
665665 [1., 1., 1.]].
@@ -669,12 +669,12 @@ def convertToTransferFunction(sys, **kw):
669669 if isinstance (sys , TransferFunction ):
670670 if len (kw ):
671671 raise TypeError ("If sys is a TransferFunction, \
672- convertToTransferFunction cannot take keywords." )
672+ _convertToTransferFunction cannot take keywords." )
673673
674674 return sys
675675 elif isinstance (sys , statesp .StateSpace ):
676676 if len (kw ):
677- raise TypeError ("If sys is a StateSpace, convertToTransferFunction \
677+ raise TypeError ("If sys is a StateSpace, _convertToTransferFunction \
678678 cannot take keywords." )
679679
680680 # Use Slycot to make the transformation.
0 commit comments