DiscretisationMethod

it.grypho.scala.leonardo.control.DiscretisationMethod
See theDiscretisationMethod companion object

Continuous-to-discrete conversion.

The method is always a visible argument, never a hidden default. The same plant discretised by zero-order hold and by Tustin has different discrete poles, so a silent choice would make two correct-looking answers disagree with no way to see why.

Attributes

Companion
object
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
trait Keyworded
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

Backward Euler, s = (z − 1)/(Ts·z): maps the left half-plane into the unit disc, so a stable plant stays stable (F_0009).

Backward Euler, s = (z − 1)/(Ts·z): maps the left half-plane into the unit disc, so a stable plant stays stable (F_0009).

Attributes

case Foh extends DiscretisationMethod

First-order hold, the non-causal triangle hold: G_d(z) = (z − 1)²/(Ts·z) · Z{L⁻¹[G(s)/s²]}, the ramp-invariant equivalent. Keeps the DC gain (F_0009).

First-order hold, the non-causal triangle hold: G_d(z) = (z − 1)²/(Ts·z) · Z{L⁻¹[G(s)/s²]}, the ramp-invariant equivalent. Keeps the DC gain (F_0009).

Attributes

Forward Euler, s = (z − 1)/Ts. Can map a stable plant to an unstable one: a pole at s = p goes to z = 1 + p·Ts, outside the unit circle once |1 + p·Ts| > 1 (F_0009).

Forward Euler, s = (z − 1)/Ts. Can map a stable plant to an unstable one: a pole at s = p goes to z = 1 + p·Ts, outside the unit circle once |1 + p·Ts| > 1 (F_0009).

Attributes

Impulse invariance: G_d(z) = Ts · Z{g(n·Ts)}, g = L⁻¹[G] (MATLAB's scaling, with no g(0)/2 correction). Aliases: the frequency response is the continuous one folded at the Nyquist frequency, so it is faithful only for a plant that is band-limited well below π/Ts. Declines a plant with direct feedthrough, whose impulse response has an impulse at t = 0 (F_0009).

Impulse invariance: G_d(z) = Ts · Z{g(n·Ts)}, g = L⁻¹[G] (MATLAB's scaling, with no g(0)/2 correction). Aliases: the frequency response is the continuous one folded at the Nyquist frequency, so it is faithful only for a plant that is band-limited well below π/Ts. Declines a plant with direct feedthrough, whose impulse response has an impulse at t = 0 (F_0009).

Attributes

Matched pole-zero: every finite pole and zero maps by z = e^(s·Ts), all but one zero at infinity to z = −1 (the one kept is a one-step delay), and the gain is matched at low frequency — at DC, or, with k net integrators or differentiators, so that G_d(z)·(Ts/(z − 1))^k → G(s)/s^k. Needs numeric poles and zeros (F_0009).

Matched pole-zero: every finite pole and zero maps by z = e^(s·Ts), all but one zero at infinity to z = −1 (the one kept is a one-step delay), and the gain is matched at low frequency — at DC, or, with k net integrators or differentiators, so that G_d(z)·(Ts/(z − 1))^k → G(s)/s^k. Needs numeric poles and zeros (F_0009).

Attributes

Tustin, the bilinear transform s = (2/Ts)*(z-1)/(z+1) — what a filter designer wants. Maps the left half-plane onto the unit disc exactly, so stability is preserved. Its prewarped form is c2dPrewarped, a parameter on this method rather than a method of its own (F_0009).

Tustin, the bilinear transform s = (2/Ts)*(z-1)/(z+1) — what a filter designer wants. Maps the left half-plane onto the unit disc exactly, so stability is preserved. Its prewarped form is c2dPrewarped, a parameter on this method rather than a method of its own (F_0009).

Attributes

case Zoh extends DiscretisationMethod

Zero-order hold — what a sampled-data control system physically does: the input is held constant between samples. The default choice for a plant.

Zero-order hold — what a sampled-data control system physically does: the input is held constant between samples. The default choice for a plant.

Attributes