Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(23)  |  Call(21)  |  Derive(0)  |  Import(2)
TransferFunction type

This class implements the TransferFunction type, based on the
Polynomial type. The TransferFunction object uses 2 polynomials
to store the numerator and the denominator. For example::

    >>> a = TransferFunction([1], [1, 2, 3])
    >>> print a
    Transfer Function:
    (more...)

src/p/i/pidsim-models-0.2.1/pidsim_models/models.py   pidsim-models(Download)
 
from pidsim.approximation import methods
from pidsim.types import tf, poly
from pidsim_models.base import ReferenceModel, I18nStr
 
    def callback(self, k, Tau):
        return tf([k], [Tau, 1])
 
 
class Model2(ReferenceModel):
    def callback(self, k, T1, T2):
        return tf([k], poly([T1, 1]) * poly([T2, 1]))
 
 
class Model3(ReferenceModel):
    def callback(self, k, T1, T2):
        return tf([-T1 * k, k], poly([T1, 1]) * poly([T2, 1]))
 
 
class Model4(ReferenceModel):
    def callback(self, k, T1, T2, T3, T4, Tt, pade_order):
        num = poly([k * T4, k])
        den = poly([T1, 1]) * poly([T2, 1]) * poly([T3, 1])
        return tf(num, den) * methods[int(pade_order)](Tt)
 

src/p/i/pidsim-1.0rc6/pidsim/approximation.py   pidsim(Download)
]
 
from pidsim.types import poly, tf
 
def Pade1(t):
    num = num.mult(1.0/den[0])
    den = den.mult(1.0/den[0])
    return tf(num, den)
 
 
    num = num.mult(1.0/den[0])
    den = den.mult(1.0/den[0])
    return tf(num, den)
 
 
    num = num.mult(1.0/den[0])
    den = den.mult(1.0/den[0])
    return tf(num, den)
 
 
    num = num.mult(1.0/den[0])
    den = den.mult(1.0/den[0])
    return tf(num, den)