Product Code Database
Example Keywords: metroid prime -gran $45
barcode-scavenger
   » » Wiki: Discretization
Tag Wiki 'Discretization'.
Tag

In applied mathematics, discretization is the process of transferring continuous functions, models, variables, and equations into counterparts. This process is usually carried out as a first step toward making them suitable for numerical evaluation and implementation on digital computers. Dichotomization is the special case of discretization in which the number of discrete classes is 2, which can approximate a continuous variable as a (creating a for purposes, as in binary classification).

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 or category granularity, as when multiple discrete variables are aggregated or multiple discrete categories fused.

Whenever continuous data is discretized, there is always some amount of discretization error. The goal is to reduce the amount to a level considered for the purposes at hand.

The terms ''discretization '' and ''quantization'' often have the same [[denotation]] but not always identical [[connotations]]. (Specifically, the two terms share a [[semantic field]].) The same is true of discretization error and quantization error.
     

Mathematical methods relating to discretization include the Euler–Maruyama method and the .


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-time state space model

\begin{align}

 \dot{\mathbf{x}}(t) &= \mathbf{Ax}(t) + \mathbf{Bu}(t) + \mathbf{w}(t) \\[2pt]
 \mathbf{y}(t) &= \mathbf{Cx}(t) + \mathbf{Du}(t) + \mathbf{v}(t)
     
\end{align}

where and are continuous zero-mean sources with power spectral densities

\begin{align}

 \mathbf{w}(t) &\sim N(0,\mathbf Q) \\[2pt]
 \mathbf{v}(t) &\sim N(0,\mathbf R)
     
\end{align}

can be discretized, assuming for the input and continuous integration for the noise , to

\begin{align}

 \mathbf{x}[k+1] &= \mathbf{A_d x}[k] + \mathbf{B_d u}[k] + \mathbf{w}[k] \\[2pt]
 \mathbf{y}[k] &= \mathbf{C_d x}[k] + \mathbf{D_d u}[k] + \mathbf{v}[k]
     
\end{align}

with covariances

\begin{align}

 \mathbf{w}[k] &\sim N(0,\mathbf{Q_d}) \\[2pt]
 \mathbf{v}[k] &\sim N(0,\mathbf{R_d})
     
\end{align}

where

\begin{align} \mathbf{A_d} &= e^{\mathbf A T} = \mathcal{L}^{-1} \Bigl\{(s\mathbf I - \mathbf A)^{-1} \Bigr\}_{t=T} \\4pt

 \mathbf{B_d} &= \left( \int_{\tau=0}^{T}e^{\mathbf A \tau}d\tau \right) \mathbf B \\[4pt]
 \mathbf{C_d} &= \mathbf C \\[8pt]
 \mathbf{D_d} &= \mathbf D \\[2pt]
 \mathbf{Q_d} &= \int_{\tau=0}^{T} e^{\mathbf A \tau} \mathbf Q e^{\mathbf A^\top \tau}  d\tau \\[2pt]
 \mathbf{R_d} &= \mathbf R \frac{1}{T}
     
\end{align}

and is the . If is nonsingular, \mathbf{B_d} = \mathbf A^{-1}(\mathbf{A_d} - \mathbf{I})\mathbf B.

The equation for the discretized measurement noise is a consequence of the continuous measurement noise being defined with a power spectral density.

(1974). 9780262200271, M.I.T. Press. .

A clever trick to compute and in one step is by utilizing the following property:Raymond DeCarlo: Linear Systems: A State Variable Approach with Numerical Implementation, Prentice Hall, NJ, 1989

 e^{\begin{bmatrix}
   \mathbf{A} & \mathbf{B} \\
   \mathbf{0} & \mathbf{0}
 \end{bmatrix} T} = \begin{bmatrix}
   \mathbf{A_d} & \mathbf{B_d} \\
   \mathbf{0} & \mathbf{I}
 \end{bmatrix}
     

Where and are the discretized state-space matrices.


Discretization of process noise
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 itCharles Van Loan: Computing integrals involving the matrix exponential, IEEE Transactions on Automatic Control. 23 (3): 395–404, 1978 \begin{align}
 \mathbf{F} &= \begin{bmatrix}
   -\mathbf{A} & \mathbf{Q} \\
   \mathbf{0} & \mathbf{A}^\top
 \end{bmatrix} T \\[2pt]
 \mathbf{G} &= e^\mathbf{F} = \begin{bmatrix}
   \dots & \mathbf{A_d}^{-1}\mathbf{Q_d} \\
   \mathbf{0} & \mathbf{A_d}^\top
 \end{bmatrix}
     
\end{align} The discretized process noise is then evaluated by multiplying the transpose of the lower-right partition of with the upper-right partition of : \mathbf{Q_d} = (\mathbf{A_d}^\top)^\top (\mathbf{A_d}^{-1}\mathbf{Q_d}) = \mathbf{A_d} (\mathbf{A_d}^{-1}\mathbf{Q_d}).


Derivation
Starting with the continuous model \mathbf{\dot{x}}(t) = \mathbf{Ax}(t) + \mathbf{Bu}(t) we know that the matrix exponential is \frac{d}{dt}e^{\mathbf{A}t} = \mathbf{A}e^{\mathbf{A}t} = e^{\mathbf{A}t} \mathbf A and by premultiplying the model we get e^{-\mathbf{A}t} \mathbf{\dot{x}}(t) = e^{-\mathbf{A}t} \mathbf{Ax}(t) + e^{-\mathbf{A}t} \mathbf{Bu}(t) which we recognize as \frac{d}{dt}\Bigle^{-\mathbf{A}t}\mathbf = e^{-\mathbf{A}t} \mathbf{Bu}(t) and by integrating, \begin{align}
 e^{-\mathbf{A}t}\mathbf{x}(t) - e^0\mathbf{x}(0) &= \int_0^t e^{-\mathbf{A}\tau} \mathbf{Bu}(\tau) d\tau \\[2pt]
 \mathbf{x}(t) &= e^{\mathbf{A}t}\mathbf{x}(0) + \int_0^t e^{\mathbf{A}(t-\tau)} \mathbf{Bu}(\tau) d\tau
     
\end{align} which is an analytical solution to the continuous model.

Now we want to discretise the above expression. We assume that is constant during each timestep. \begin{align}

 \mathbf x[k] &\, \stackrel{\mathrm{def}}{=}\ \mathbf x(kT) \\[6pt]
 \mathbf x[k] &= e^{\mathbf{A}kT}\mathbf x(0) + \int_0^{kT} e^{\mathbf A(kT-\tau)} \mathbf{Bu}(\tau) d\tau \\[4pt]
 \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{Bu}(\tau) d \tau \\[2pt]
 \mathbf x[k+1] &= e^{\mathbf{A}T} \left[  e^{\mathbf{A}kT}\mathbf x(0) + \int_0^{kT} e^{\mathbf A(kT-\tau)} \mathbf{Bu}(\tau) d \tau \right]+ \int_{kT}^{(k+1)T} e^{\mathbf A(kT+T-\tau)} \mathbf B\mathbf u(\tau) d\tau
     
\end{align} We recognize the bracketed expression as \mathbf xk, and the second term can be simplified by substituting with the function v(\tau) = kT + T - \tau. Note that d\tau=-dv. We also assume that is constant during the , which in turn yields

\begin{align}

 \mathbf x[k+1] &= e^{\mathbf{A}T}\mathbf x[k] - \left( \int_{v(kT)}^{v((k+1)T)} e^{\mathbf{A}v} dv \right) \mathbf{Bu}[k] \\[2pt]
 &= e^{\mathbf{A}T}\mathbf x[k] - \left( \int_T^0 e^{\mathbf{A}v} dv \right) \mathbf{Bu}[k] \\[2pt]
 &= e^{\mathbf{A}T}\mathbf x[k] + \left( \int_0^T e^{\mathbf{A}v} dv \right) \mathbf{Bu}[k] \\[4pt]
 &= e^{\mathbf{A}T}\mathbf x[k] + \mathbf A^{-1}\left(e^{\mathbf{A}T} - \mathbf I \right) \mathbf{Bu}[k]
     
\end{align}

which is an exact solution to the discretization problem.

When is singular, the latter expression can still be used by replacing e^{\mathbf{A}T} by its , e^{\mathbf{A}T} = \sum_{k=0}^{\infty} \frac{1}{k!} (\mathbf{A}T)^k . This yields \begin{align}

 \mathbf x[k+1] &= e^{\mathbf{A}T}\mathbf x[k] + \left( \int_0^T e^{\mathbf{A}v} dv \right) \mathbf{Bu}[k] \\[2pt]
 &= \left(\sum_{k=0}^{\infty} \frac{1}{k!} (\mathbf{A}T)^k\right) \mathbf x[k] + \left(\sum_{k=1}^{\infty} \frac{1}{k!} \mathbf{A}^{k-1} T^k\right) \mathbf{Bu}[k],
     
\end{align} which is the form used in practice.


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 e^{\mathbf{A}T} \approx \mathbf I + \mathbf A T. The approximate solution then becomes: \mathbf xk+1 \approx (\mathbf I + \mathbf{A}T) \mathbf xk + T \mathbf{Bu}k

This is also known as the , which is also known as the forward Euler method. Other possible approximations are e^{\mathbf{A}T} \approx (\mathbf I - \mathbf{A}T)^{-1}, otherwise known as the backward Euler method and e^{\mathbf{A}T} \approx (\mathbf I +\tfrac{1}{2} \mathbf{A}T) (\mathbf I - \tfrac{1}{2} \mathbf{A}T)^{-1}, which is known as the bilinear transform, or Tustin transform. Each of these approximations has different stability properties. The bilinear transform preserves the instability of the continuous-time system.


Discretization of continuous features
In 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.


Discretization of smooth functions
In generalized functions theory, discretization arises as a particular case of the Convolution Theorem on tempered distributions

\mathcal{F}\{f*\operatorname{III}\} = \mathcal{F}\{f\} \cdot \operatorname{III}
\mathcal{F}\{\alpha \cdot \operatorname{III}\}= \mathcal{F}\{\alpha\}*\operatorname{III}

where \operatorname{III} is the , \cdot \operatorname{III} is discretization, * \operatorname{III} is periodization, f is a rapidly decreasing tempered distribution (e.g. a Dirac delta function \delta or any other compactly supported function), \alpha is a , slowly growing ordinary function (e.g. the function that is constantly 1 or any other function) and \mathcal{F} is the (unitary, ordinary frequency) Fourier transform. Functions \alpha which are not smooth can be made smooth using a prior to discretization.

As an example, discretization of the function that is constantly 1 yields the ..,1,1,1,.. which, interpreted as the coefficients of a linear combination of Dirac delta functions, forms a . If additionally is applied, one obtains finite sequences, e.g. 1,1,1,1. They are discrete in both, time and frequency.


See also
  • Discrete event simulation
  • Discrete time and continuous time
  • Finite difference method
  • Finite volume method for unsteady flow
  • Stochastic simulation
  • Time-scale calculus


Further reading


External links

Page 1 of 1
1
Page 1 of 1
1

Account

Social:
Pages:  ..   .. 
Items:  .. 

Navigation

General: Atom Feed Atom Feed  .. 
Help:  ..   .. 
Category:  ..   .. 
Media:  ..   .. 
Posts:  ..   ..   .. 

Statistics

Page:  .. 
Summary:  .. 
1 Tags
10/10 Page Rank
5 Page Refs
1s Time