HOME

TheInfoList



OR:

In
applied mathematics Applied mathematics is the application of mathematics, mathematical methods by different fields such as physics, engineering, medicine, biology, finance, business, computer science, and Industrial sector, industry. Thus, applied mathematics is a ...
, discretization is the process of transferring continuous functions, models, variables, 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. Dichotomization is the special case of discretization in which the number of discrete classes is 2, which can approximate a continuous variable as a binary variable (creating a
dichotomy A dichotomy () is a partition of a set, partition of a whole (or a set) into two parts (subsets). In other words, this couple of parts must be * jointly exhaustive: everything must belong to one part or the other, and * mutually exclusive: nothi ...
for modeling 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 negligible for the modeling 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 In linguistics, a semantic field is a related set of words grouped semantically (by meaning) that refers to a specific subject.Howard Jackson, Etienne Zé Amvela, ''Words, Meaning, and Vocabulary'', Continuum, 2000, p14. The term is also used in ...
.) The same is true of discretization error and quantization error. Mathematical methods relating to discretization include the Euler–Maruyama method and the zero-order hold.


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 \dot(t) &= \mathbf(t) + \mathbf(t) + \mathbf(t) \\ pt \mathbf(t) &= \mathbf(t) + \mathbf(t) + \mathbf(t) \end where and are continuous zero-mean white noise sources with power spectral densities \begin \mathbf(t) &\sim N(0,\mathbf Q) \\ pt \mathbf(t) &\sim N(0,\mathbf R) \end can be discretized, assuming zero-order hold for the input and continuous integration for the noise , to \begin \mathbf +1&= \mathbf + \mathbf + \mathbf \\ pt \mathbf &= \mathbf + \mathbf + \mathbf \end with covariances \begin \mathbf &\sim N(0,\mathbf) \\ pt \mathbf &\sim N(0,\mathbf) \end where \begin \mathbf &= e^ = \mathcal^ \Bigl\_ \\ pt \mathbf &= \left( \int_^e^d\tau \right) \mathbf B \\ pt \mathbf &= \mathbf C \\ pt \mathbf &= \mathbf D \\ pt \mathbf &= \int_^ e^ \mathbf Q e^ d\tau \\ pt \mathbf &= \mathbf R \frac \end and is the sample time. If is nonsingular, \mathbf = \mathbf A^(\mathbf - \mathbf)\mathbf B. The equation for the discretized measurement noise is a consequence of the continuous measurement noise being defined with a power spectral density. A clever trick to compute and in one step is by utilizing the following property: e^ = \begin \mathbf & \mathbf \\ \mathbf & \mathbf \end 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 \mathbf &= \begin -\mathbf & \mathbf \\ \mathbf & \mathbf^\top \end T \\ pt \mathbf &= e^\mathbf = \begin \dots & \mathbf^\mathbf \\ \mathbf & \mathbf^\top \end \end The discretized process noise is then evaluated by multiplying the transpose of the lower-right partition of with the upper-right partition of : \mathbf = (\mathbf^\top)^\top (\mathbf^\mathbf) = \mathbf (\mathbf^\mathbf).


Derivation

Starting with the continuous model \mathbf(t) = \mathbf(t) + \mathbf(t) we know that the
matrix exponential In mathematics, the matrix exponential is a matrix function on square matrix, square matrices analogous to the ordinary exponential function. It is used to solve systems of linear differential equations. In the theory of Lie groups, the matrix exp ...
is \frace^ = \mathbfe^ = e^ \mathbf A and by premultiplying the model we get e^ \mathbf(t) = e^ \mathbf(t) + e^ \mathbf(t) which we recognize as \frac\Bigl ^\mathbf x(t) \Bigr= e^ \mathbf(t) and by integrating, \begin e^\mathbf(t) - e^0\mathbf(0) &= \int_0^t e^ \mathbf(\tau) d\tau \\ pt \mathbf(t) &= e^\mathbf(0) + \int_0^t e^ \mathbf(\tau) d\tau \end 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 \mathbf x &\, \stackrel\ \mathbf x(kT) \\ pt \mathbf x &= e^\mathbf x(0) + \int_0^ e^ \mathbf(\tau) d\tau \\ pt \mathbf x +1&= e^\mathbf x(0) + \int_0^ e^ \mathbf(\tau) d \tau \\ pt \mathbf x +1&= e^ \left e^\mathbf x(0) + \int_0^ e^ \mathbf(\tau) d \tau \right \int_^ e^ \mathbf B\mathbf u(\tau) d\tau \end We recognize the bracketed expression as \mathbf x /math>, 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
integral In mathematics, an integral is the continuous analog of a Summation, sum, which is used to calculate area, areas, volume, volumes, and their generalizations. Integration, the process of computing an integral, is one of the two fundamental oper ...
, which in turn yields \begin \mathbf x +1&= e^\mathbf x - \left( \int_^ e^ dv \right) \mathbf \\ pt &= e^\mathbf x - \left( \int_T^0 e^ dv \right) \mathbf \\ pt &= e^\mathbf x + \left( \int_0^T e^ dv \right) \mathbf \\ pt &= e^\mathbf x + \mathbf A^\left(e^ - \mathbf I \right) \mathbf \end which is an exact solution to the discretization problem. When is singular, the latter expression can still be used by replacing e^ by its Taylor expansion, e^ = \sum_^ \frac (\mathbfT)^k . This yields \begin \mathbf x +1&= e^\mathbf x + \left( \int_0^T e^ dv \right) \mathbf \\ pt &= \left(\sum_^ \frac (\mathbfT)^k\right) \mathbf x + \left(\sum_^ \frac \mathbf^ T^k\right) \mathbf \end 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^ \approx \mathbf I + \mathbf A T. The approximate solution then becomes: \mathbf x +1\approx (\mathbf I + \mathbfT) \mathbf x + T \mathbf This is also known as the Euler method, which is also known as the forward Euler method. Other possible approximations are e^ \approx (\mathbf I - \mathbfT)^, otherwise known as the backward Euler method and e^ \approx (\mathbf I +\tfrac \mathbfT) (\mathbf I - \tfrac \mathbfT)^, 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
statistics Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
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\ = \mathcal\ \cdot \operatorname : \mathcal\= \mathcal\*\operatorname where \operatorname is the Dirac comb, \cdot \operatorname is discretization, * \operatorname is
periodization In historiography, periodization is the process or study of categorizing the past into discrete, quantified, and named blocks of time for the purpose of study or analysis.Adam Rabinowitz.It's about time: historical periodization and Linked Ancie ...
, f is a rapidly decreasing tempered distribution (e.g. a Dirac delta function \delta or any other compactly supported function), \alpha is a smooth, slowly growing ordinary function (e.g. the function that is constantly 1 or any other band-limited function) and \mathcal is the (unitary, ordinary frequency) Fourier transform. Functions \alpha which are not smooth can be made smooth using a mollifier prior to discretization. As an example, discretization of the function that is constantly 1 yields the sequence .,1,1,1,../math> which, interpreted as the coefficients of a linear combination of Dirac delta functions, forms a Dirac comb. If additionally truncation is applied, one obtains finite sequences, e.g. ,1,1,1/math>. They are discrete in both, time and frequency.


See also

* Discrete event simulation * Discrete space * Discrete time and continuous time * Finite difference method * Finite volume method for unsteady flow * Interpolation * Smoothing * Stochastic simulation * Time-scale calculus


References


Further reading

* * * *


External links


Discretization in Geometry and Dynamics: research on the discretization of differential geometry and dynamics
{{Authority control Numerical analysis Applied mathematics Functional analysis Iterative methods Control theory