Discretization
From Wikipedia, the free encyclopedia
In mathematics, discretization concerns the process of transferring continuous models and equations into discrete counterparts. This process is usually carried out as a first step toward making them suitable for numerical evaluation and implementation on digital computers. In order to be processed on a digital computer another process named quantization is essential.
- Euler discretization
- Zero order hold
Discretization is also related to discrete mathematics, and is an important component of granular computing. In this context, discretization may also refer to modification of variable of category granularity, as when multiple discrete variables are aggregated or multiple discrete categories fused.
[edit] Discretization of linear state space models
Discretization is also concerned with the transformation of continuous differential equations into discrete difference equations, suitable for numerical computing.
The following continuous state space model
where v and w are continuous zero-mean white noise sources with covariances
can be discretised, assuming zero-order hold for the input u and continuous integration for the noise v, to
with covariances
where
- , if is nonsingular
and T is the sample time.
[edit] Derivation
Starting with the continuous model
we know that the matrix exponential is
and by premultiplying the model we get
which we recognize as
and by integrating..
which is an analytical solution to the continuous model.
Now we want to discretise the above expression. We assume that u is constant during each timestep.
We recognize the bracketed expression as , and the second term can be simplified by substituting v = kT + T − τ. We also assume that is constant during the integral, which in turn yields
which is an exact solution to the discretization problem.
[edit] Approximations
Exact discretization may sometimes be intractable due to the heavy matrix exponential and integral operations involved. It is much easier to calculate an approximate discrete model, based on that for small timesteps . The approximate solution then becomes:
which can further be approximated if is small; yielding
Other possible approximations are and . Each of them have different stability properties. The last one is known as the bilinear transform, or Tustin transform, and preserves the (un)stability of the continuous-time system.