Discretization
|
|
It has been suggested that Discretization error be merged into this article. (Discuss) Proposed since February 2013. |
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.
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.
Contents |
Discretization of linear state space models [edit]
|
|
It has been suggested that this section be split into a new article. (Discuss) Proposed since February 2013. |
Discretization is also concerned with the transformation of continuous differential equations into discrete difference equations, suitable for numerical computing.
The following continuous-time state space model
where v and w are continuous zero-mean white noise sources with covariances
can be discretized, assuming zero-order hold for the input u and continuous integration for the noise v, to
with covariances
where

, if
is nonsingular



and
is the sample time.
A clever trick to compute Ad and Bd in one step is by utilizing the following property, p. 215:[1]
and then having
Discretization of process noise [edit]
Numerical evaluation of
is a bit trickier due to the matrix exponential integral. It can, however, be computed by first constructing a matrix, and computing the exponential of it (Van Loan, 1978):
The discretized process noise is then evaluated by multiplying the transpose of the lower-right partition of G with the upper-right partition of G:
Derivation [edit]
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
. We also assume that
is constant during the integral, which in turn yields
which is an exact solution to the discretization problem.
Approximations [edit]
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:
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 (in)stability of the continuous-time system.
Discretization of continuous features [edit]
In statistics and machine learning, discretization refers to the process of converting continuous features or variables to discretized or nominal features. This can be useful when creating probability mass functions.
See also [edit]
References [edit]
- ^ Raymond DeCarlo: Linear Systems: A State Variable Approach with Numerical Implementation, Prentice Hall, NJ, 1989
- Robert Grover Brown & Patrick Y. C. Hwang: Introduction to random signals and applied Kalman filtering, 3rd ed.
- Chi-Tsong Chen: Linear System Theory and Design.
- C. Van Loan: Computing integrals involving the matrix exponential, IEEE Transactions on Automatic Control, vol.23, no.3, pp. 395–404, Jun 1978
External links [edit]
| Find more about Discretization at Wikipedia's sister projects | |
| Definitions and translations from Wiktionary | |
| Media from Commons | |
| Learning resources from Wikiversity | |
| News stories from Wikinews | |
| Quotations from Wikiquote | |
| Source texts from Wikisource | |
| Textbooks from Wikibooks | |
| Travel information from Wikivoyage | |




![\mathbf{x}[k+1] = \mathbf A_d \mathbf{x}[k] + \mathbf B_d \mathbf{u}[k] + \mathbf{w}[k]](http://upload.wikimedia.org/math/4/d/9/4d99e138b1988318c46a147dfe04dad9.png)
![\mathbf{y}[k] = \mathbf C_d \mathbf{x}[k] + \mathbf D_d \mathbf{u}[k] + \mathbf{v}[k]](http://upload.wikimedia.org/math/f/8/b/f8bc8749981bf3dbaf5f0e2d5bcb7c9e.png)
![\mathbf{w}[k] \sim N(0,\mathbf Q_d)](http://upload.wikimedia.org/math/2/f/7/2f7677a0bc77f8be93f5750e2e8ae6f2.png)
![\mathbf{v}[k] \sim N(0,\mathbf R_d)](http://upload.wikimedia.org/math/5/1/6/516d47584f76838633907b42fe6b6e90.png)

, if
is 















![\mathbf x[k] \ \stackrel{\mathrm{def}}{=}\ \mathbf x(kT)](http://upload.wikimedia.org/math/c/6/4/c64b1c234db3726f2b13ca9654c6351b.png)
![\mathbf x[k] = e^{\mathbf AkT}\mathbf x(0) + \int_0^{kT} e^{\mathbf A(kT-\tau)} \mathbf B\mathbf u(\tau) d \tau](http://upload.wikimedia.org/math/3/d/c/3dc32fd16229c19f6b1e645964e96efe.png)
![\mathbf x[k+1] = e^{\mathbf A(k+1)T}\mathbf x(0) + \int_0^{(k+1)T} e^{\mathbf A((k+1)T-\tau)} \mathbf B\mathbf u(\tau) d \tau](http://upload.wikimedia.org/math/8/e/8/8e80d0073494575da842f987363faba4.png)
![\mathbf x[k+1] = e^{\mathbf AT} \left[ e^{\mathbf AkT}\mathbf x(0) + \int_0^{kT} e^{\mathbf A(kT-\tau)} \mathbf B\mathbf u(\tau) d \tau \right]+ \int_{kT}^{(k+1)T} e^{\mathbf A(kT+T-\tau)} \mathbf B\mathbf u(\tau) d \tau](http://upload.wikimedia.org/math/6/e/a/6ea735dec8e6703e34509a2e171142ad.png)
![\mathbf x[k+1] = e^{\mathbf AT}\mathbf x[k] + \left( \int_0^T e^{\mathbf Av} dv \right) \mathbf B\mathbf u[k]=e^{\mathbf AT}\mathbf x[k] + A^{-1}\left(e^{\mathbf AT}-I \right) \mathbf B\mathbf u[k]](http://upload.wikimedia.org/math/3/d/1/3d1c00e923715e9436c923f9482ab500.png)
![\mathbf x[k+1] \approx (\mathbf I + \mathbf AT) \mathbf x[k] + T\mathbf B \mathbf u[k]](http://upload.wikimedia.org/math/c/f/4/cf495a4fe2a1b7bda01b6fdf81671205.png)