HOME

TheInfoList



OR:

In
applied mathematics Applied mathematics is the application of mathematical methods by different fields such as physics, engineering, medicine, biology, finance, business, computer science, and industry. Thus, applied mathematics is a combination of mathematical s ...
, discretization is the process of transferring
continuous Continuity or continuous may refer to: Mathematics * Continuity (mathematics), the opposing concept to discreteness; common examples include ** Continuous probability distribution or random variable in probability and statistics ** Continuous ...
functions, models, variables, and equations into
discrete Discrete may refer to: *Discrete particle or quantum in physics, for example in quantum theory * Discrete device, an electronic component with just one circuit element, either passive or active, other than an integrated circuit *Discrete group, a ...
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 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: nothing can belong simulta ...
for modeling purposes, as in binary classification). Discretization is also related to
discrete mathematics Discrete mathematics is the study of mathematical structures that can be considered "discrete" (in a way analogous to discrete variables, having a bijection with the set of natural numbers) rather than "continuous" (analogously to continuous f ...
, 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 {{Short pages monitor (Specifically, the two terms share a
semantic field In linguistics, a semantic field is a lexical 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 Quantization, in mathematics and digital signal processing, is the process of mapping input values from a large set (often a continuous set) to output values in a (countable) smaller set, often with a finite number of elements. Rounding and ...
. Mathematical methods relating to discretization include the Euler–Maruyama method and the
zero-order hold The zero-order hold (ZOH) is a mathematical model of the practical signal reconstruction done by a conventional digital-to-analog converter (DAC). That is, it describes the effect of converting a discrete-time signal to a continuous-time signal ...
.


Discretization of linear state space models

Discretization is also concerned with the transformation of continuous
differential equation In mathematics, a differential equation is an equation that relates one or more unknown functions and their derivatives. In applications, the functions generally represent physical quantities, the derivatives represent their rates of change, an ...
s into discrete difference equations, suitable for numerical computing. The following continuous-time state space model :\dot(t) = \mathbf A \mathbf(t) + \mathbf B \mathbf(t) + \mathbf(t) :\mathbf(t) = \mathbf C \mathbf(t) + \mathbf D \mathbf(t) + \mathbf(t) where ''v'' and ''w'' are continuous zero-mean
white noise In signal processing, white noise is a random signal having equal intensity at different frequencies, giving it a constant power spectral density. The term is used, with this or similar meanings, in many scientific and technical disciplines, ...
sources with power spectral densities :\mathbf(t) \sim N(0,\mathbf Q) :\mathbf(t) \sim N(0,\mathbf R) can be discretized, assuming
zero-order hold The zero-order hold (ZOH) is a mathematical model of the practical signal reconstruction done by a conventional digital-to-analog converter (DAC). That is, it describes the effect of converting a discrete-time signal to a continuous-time signal ...
for the input ''u'' and continuous integration for the noise ''v'', to :\mathbf +1= \mathbf A_d \mathbf + \mathbf B_d \mathbf + \mathbf /math> :\mathbf = \mathbf C_d \mathbf + \mathbf D_d \mathbf + \mathbf /math> with covariances :\mathbf \sim N(0,\mathbf Q_d) :\mathbf \sim N(0,\mathbf R_d) where :\mathbf A_d = e^ = \mathcal^\_ :\mathbf B_d = \left( \int_^e^d\tau \right) \mathbf B = \mathbf A^(\mathbf A_d - I)\mathbf B , if \mathbf A is
nonsingular In linear algebra, an -by- square matrix is called invertible (also nonsingular or nondegenerate), if there exists an -by- square matrix such that :\mathbf = \mathbf = \mathbf_n \ where denotes the -by- identity matrix and the multiplicati ...
:\mathbf C_d = \mathbf C :\mathbf D_d = \mathbf D :\mathbf Q_d = \int_^ e^ \mathbf Q e^ d\tau :\mathbf R_d = \mathbf R \frac and T is the sample time, although \mathbf A^\top is the transposed matrix of \mathbf A. 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 ''A''''d'' and ''B''''d'' in one step is by utilizing the following property: :e^ = \begin \mathbf & \mathbf \\ \mathbf & \mathbf \end Where \mathbf A_dand \mathbf B_dare the discretized state-space matrices.


Discretization of process noise

Numerical evaluation of \mathbf_d 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 : \mathbf = \begin -\mathbf & \mathbf \\ \mathbf & \mathbf^\top \end T : \mathbf = e^\mathbf = \begin \dots & \mathbf_d^\mathbf_d \\ \mathbf & \mathbf_d^\top \end. 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: :\mathbf_d = (\mathbf_d^\top)^\top (\mathbf_d^\mathbf_d) = \mathbf_d (\mathbf_d^\mathbf_d).


Derivation

Starting with the continuous model :\mathbf(t) = \mathbf A\mathbf x(t) + \mathbf B \mathbf u(t) we know that the matrix exponential is :\frace^ = \mathbf A e^ = e^ \mathbf A and by premultiplying the model we get :e^ \mathbf(t) = e^ \mathbf A\mathbf x(t) + e^ \mathbf B\mathbf u(t) which we recognize as :\frac(e^\mathbf x(t)) = e^ \mathbf B\mathbf u(t) and by integrating.. :e^\mathbf x(t) - e^0\mathbf x(0) = \int_0^t e^\mathbf B\mathbf u(\tau) d\tau :\mathbf x(t) = e^\mathbf x(0) + \int_0^t e^ \mathbf B\mathbf u(\tau) d \tau 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. :\mathbf x \ \stackrel\ \mathbf x(kT) :\mathbf x = e^\mathbf x(0) + \int_0^ e^ \mathbf B\mathbf u(\tau) d \tau :\mathbf x +1= e^\mathbf x(0) + \int_0^ e^ \mathbf B\mathbf u(\tau) d \tau :\mathbf x +1= e^ \left e^\mathbf x(0) + \int_0^ e^ \mathbf B\mathbf u(\tau) d \tau \right \int_^ e^ \mathbf B\mathbf u(\tau) d \tau 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 \mathbf u is constant during the
integral In mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented i ...
, which in turn yields : \begin \mathbf x +1=& e^\mathbf x - \left( \int_^ e^ dv \right) \mathbf B\mathbf u \\ &=& e^\mathbf x - \left( \int_T^0 e^ dv \right) \mathbf B\mathbf u \\ &=& e^\mathbf x + \left( \int_0^T e^ dv \right) \mathbf B\mathbf u \\ &=&e^\mathbf x + \mathbf A^\left(e^-\mathbf I \right) \mathbf B\mathbf u \end which is an exact solution to the discretization problem. When \mathbf is singular, the latter expression can still be used by replacing e^ by its Taylor expansion, : e^ = \sum_^ \frac (T)^k . This yields : \begin \mathbf x +1=& e^\mathbf x + \left( \int_0^T e^ dv \right) \mathbf B\mathbf u \\ &=&\left(\sum_^ \frac (T)^k\right) \mathbf x + \left(\sum_^ \frac ^ T^k\right) \mathbf B\mathbf u \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 + \mathbf AT) \mathbf x + T\mathbf B \mathbf u This is also known as the Euler method, which is also known as the forward Euler method. Other possible approximations are e^ \approx \left( \mathbf I - \mathbf A T \right)^, otherwise known as the backward Euler method and e^ \approx \left( \mathbf I +\frac \mathbf A T \right) \left( \mathbf I - \frac \mathbf A T \right)^, which is known as the
bilinear transform The bilinear transform (also known as Tustin's method, after Arnold Tustin) is used in digital signal processing and discrete-time control theory to transform continuous-time system representations to discrete-time and vice versa. The bilinear t ...
, 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: ''wikt:Statistik#German, Statistik'', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of ...
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 Distributions, also known as Schwartz distributions or generalized functions, are objects that generalize the classical notion of functions in mathematical analysis. Distributions make it possible to derivative, differentiate functions whose de ...
: \mathcal\ = \mathcal\ \cdot \operatorname : \mathcal\= \mathcal\*\operatorname where \operatorname is the Dirac comb, \cdot \operatorname is discretization, * \operatorname is periodization, f is a rapidly decreasing tempered distribution (e.g. a
Dirac delta function In mathematics, the Dirac delta distribution ( distribution), also known as the unit impulse, is a generalized function or distribution over the real numbers, whose value is zero everywhere except at zero, and whose integral over the entire ...
\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 Bandlimiting is the limiting of a signal's frequency domain representation or spectral density to zero above a certain finite frequency. A band-limited signal is one whose Fourier transform or spectral density has bounded support. A bandlimi ...
function) and \mathcal is the (unitary, ordinary frequency)
Fourier transform A Fourier transform (FT) is a mathematical transform that decomposes functions into frequency components, which are represented by the output of the transform as a function of frequency. Most commonly functions of time or space are transformed, ...
. 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 In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is calle ...
.,1,1,1,../math> which, interpreted as the coefficients of a linear combination of
Dirac delta function In mathematics, the Dirac delta distribution ( distribution), also known as the unit impulse, is a generalized function or distribution over the real numbers, whose value is zero everywhere except at zero, and whose integral over the entire ...
s, forms a Dirac comb. If additionally
truncation In mathematics and computer science, truncation is limiting the number of digits right of the decimal point. Truncation and floor function Truncation of positive real numbers can be done using the floor function. Given a number x \in \mathbb ...
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 In topology, a discrete space is a particularly simple example of a topological space or similar structure, one in which the points form a , meaning they are '' isolated'' from each other in a certain sense. The discrete topology is the finest to ...
* Discrete time and continuous time * Finite difference method *
Finite volume method for unsteady flow Unsteady flows are characterized as flows in which the properties of the fluid are time dependent. It gets reflected in the governing equations as the time derivative of the properties are absent. For Studying Finite-volume method for unsteady flow ...
* Smoothing *
Stochastic simulation A stochastic simulation is a simulation of a system that has variables that can change stochastically (randomly) with individual probabilities.DLOUHÝ, M.; FÁBRY, J.; KUNCOVÁ, M.. Simulace pro ekonomy. Praha : VŠE, 2005. Realizations of these ...
*
Time-scale calculus In mathematics, time-scale calculus is a unification of the theory of difference equations with that of differential equations, unifying integral and differential calculus with the calculus of finite differences, offering a formalism for studying hy ...


References


Further reading

* * * *


External links

{{Authority control Numerical analysis Applied mathematics Functional analysis Iterative methods Control theory