{ } Raw JSON

bundles / scipy latest / scipy / signal / _ltisys / StateSpaceDiscrete

class

scipy.signal._ltisys:StateSpaceDiscrete

source: /scipy/signal/_ltisys.py :1703

Signature

class   StateSpaceDiscrete ( * system ** kwargs )

Summary

Discrete-time Linear Time Invariant system in state-space form.

Extended Summary

Represents the system as the discrete-time difference equation . StateSpace systems inherit additional functionality from the dlti class.

Parameters

*system: arguments

The StateSpace class can be instantiated with 1 or 3 arguments. The following gives the number of input arguments and their interpretation:

dt: float, optional

Sampling time [s] of the discrete-time systems. Defaults to True (unspecified sampling time). Must be specified as a keyword argument, for example, dt=0.1.

Notes

Changing the value of properties that are not part of the StateSpace system representation (such as zeros or poles) is very inefficient and may lead to numerical inaccuracies. It is better to convert to the specific system representation first. For example, call sys = sys.to_zpk() before accessing/changing the zeros, poles or gain.

Examples

import numpy as np
from scipy import signal
a = np.array([[1, 0.1], [0, 1]])
b = np.array([[0.005], [0.1]])
c = np.array([[1, 0]])
d = np.array([[0]])
signal.StateSpace(a, b, c, d, dt=0.1)

See also

TransferFunction
ZerosPolesGain
dlti
ss2tf
ss2zpk
zpk2sos

Aliases

  • scipy.signal._ltisys.StateSpaceDiscrete