python - How to create a scipy.lti object for a discrete LTI system? -


as in subject, i'm using python/numpy/scipy data analysis, , i'd create object of class lti discrete system, specifying (num, den, dt) or (zeros, poles, gain, dt), or (a, b, c, d, dt), documentation never mentions how that.

there nevertheless functions dsim/dstep/dimpulse take lti object , things it, guess it's possible. once have it, i'd things convert 1 representation (num/den -> zpk -> a,b,c,d), plot bode diagram, etc.

also, it's not clear me if (num, den, dt) representation use coefficient z or z^-1, don't think there clear standard.

it seems scipy.signal.lti class meant continuous time systems. checking documentation of example scipy.signal.dstep, 1 gets:

system : tuple describing system.     following gives number of elements in tuple ,     interpretation.       * 3: (num, den, dt)       * 4: (zeros, poles, gain, dt)       * 5: (a, b, c, d, dt) 

so argument system cannot object of class lti. while documentation of scipy.signal.dlsim does state accepts lti instances, think wrong. @ least scipy 0.10.0, get:

typeerror: object of type 'lti' has no len() 

so apparently dlsim expects system argument tuple.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -