Home | Trees | Indices | Help |
|
---|
|
Transfer Functions discretization
This module implements some numerical methods to discretize the Transfer Functions on the time domain.
|
|||
|
|||
|
|||
|
|||
|
|
|||
__package__ =
|
|
Euler Method Returns the points of the step response of the transfer function 'g', discretized with the Euler method, using the sample time 'sample_time' on 'total_time' seconds. For example: >>> g = TransferFunction([1], [1, 2, 3]) >>> t, y = Euler(g, 0.01, 10) >>> print t (prints a vector of times 0-10s, with the sample time 0.01s) >>> print y (prints a vector of points, with the same size of 't') |
RungeKutta2 Method Returns the points of the step response to the transfer function 'g', discretized with the Runge Kutta (order 2) method, using the sample time 'sample_time' on 'total_time' seconds. For example: >>> g = TransferFunction([1], [1, 2, 3]) >>> t, y = RungeKutta2(g, 0.01, 10) >>> print t (prints a vector of times 0-10s, with the sample time 0.01s) >>> print y (prints a vector of points, with the same size of 't') |
RungeKutta3 Method Returns the points of the step response to the transfer function 'g', discretized with the Runge Kutta (order 3) method, using the sample time 'sample_time' on 'total_time' seconds. For example: >>> g = TransferFunction([1], [1, 2, 3]) >>> t, y = RungeKutta3(g, 0.01, 10) >>> print t (prints a vector of times 0-10s, with the sample time 0.01s) >>> print y (prints a vector of points, with the same size of 't') |
RungeKutta4 Method Returns the points of the step response to the transfer function 'g', discretized with the Runge Kutta (order 4) method, using the sample time 'sample_time' on 'total_time' seconds. For example: >>> g = TransferFunction([1], [1, 2, 3]) >>> t, y = RungeKutta4(g, 0.01, 10) >>> print t (prints a vector of times 0-10s, with the sample time 0.01s) >>> print y (prints a vector of points, with the same size of 't') |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Nov 19 01:50:56 2009 | http://epydoc.sourceforge.net |