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 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, ...
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 Binary data is data whose unit can take on only two possible states. These are often labelled as 0 and 1 in accordance with the binary numeral system and Boolean algebra. Binary data occurs in many different technical and scientific fields, whe ...
(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 A model is an informative representation of an object, person, or system. The term originally denoted the Plan_(drawing), plans of a building in late 16th-century English, and derived via French language, French and Italian language, Italian ult ...
purposes, as in
binary classification Binary classification is the task of classifying the elements of a set into one of two groups (each called ''class''). Typical binary classification problems include: * Medical testing to determine if a patient has a certain disease or not; * Qual ...
). 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 Granular computing is an emerging computing paradigm of Data processing, information processing that concerns the processing of complex information entities called "information granulation, granules", which arise in the process of data abstractio ...
. 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 In numerical analysis, computational physics, and simulation, discretization error is the error resulting from the fact that a function of a continuous variable is represented in the computer by a finite number of evaluations, for example, on a ...
. The goal is to reduce the amount to a level considered negligible for the
modeling A model is an informative representation of an object, person, or system. The term originally denoted the Plan_(drawing), plans of a building in late 16th-century English, and derived via French language, French and Italian language, Italian ult ...
purposes at hand. The terms ''discretization '' and '' quantization'' often have the same
denotation In linguistics and philosophy, the denotation of a word or expression is its strictly literal meaning. For instance, the English word "warm" denotes the property of having high temperature. Denotation is contrasted with other aspects of meaning in ...
but not always identical
connotations A connotation is a commonly understood culture, cultural or emotional association that any given word or phrase carries, in addition to its explicit or Literal and figurative language, literal meaning (philosophy of language), meaning, which is it ...
. (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 In numerical analysis, computational physics, and simulation, discretization error is the error resulting from the fact that a function of a continuous variable is represented in the computer by a finite number of evaluations, for example, on a ...
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 In Itô calculus, the Euler–Maruyama method (also simply called the Euler method) is a method for the approximate numerical analysis, numerical solution of a stochastic differential equation (SDE). It is an extension of the Euler method for ord ...
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 signa ...
.


Discretization of linear state space models

Discretization is also concerned with the transformation of continuous differential equations into discrete
difference equations In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a parameter ...
, suitable for
numerical computing Numerical analysis is the study of algorithms that use numerical approximation (as opposed to symbolic manipulations) for the problems of mathematical analysis (as distinguished from discrete mathematics). It is the study of numerical methods th ...
. 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 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, i ...
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 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 signa ...
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 In signal processing, sampling is the reduction of a continuous-time signal to a discrete-time signal. A common example is the conversion of a sound wave to a sequence of "samples". A sample is a value of the signal at a point in time and/or s ...
. 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 In mathematics, the Taylor series or Taylor expansion of a function is an infinite sum of terms that are expressed in terms of the function's derivatives at a single point. For most common functions, the function and the sum of its Taylor ser ...
, 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 In mathematics and computational science, the Euler method (also called the forward Euler method) is a first-order numerical analysis, numerical procedure for solving ordinary differential equations (ODEs) with a given Initial value problem, in ...
, 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 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: ', "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 function In mathematics, generalized functions are objects extending the notion of functions on real or complex numbers. There is more than one recognized theory, for example the theory of distributions. Generalized functions are especially useful for tr ...
s theory, discretization arises as a particular case of the
Convolution Theorem In mathematics, the convolution theorem states that under suitable conditions the Fourier transform of a convolution of two functions (or signals) is the product of their Fourier transforms. More generally, convolution in one domain (e.g., time dom ...
on tempered distributions : \mathcal\ = \mathcal\ \cdot \operatorname : \mathcal\= \mathcal\*\operatorname where \operatorname is the
Dirac comb In mathematics, a Dirac comb (also known as sha function, impulse train or sampling function) is a periodic function, periodic Function (mathematics), function with the formula \operatorname_(t) \ := \sum_^ \delta(t - k T) for some given perio ...
, \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 In mathematical analysis, the Dirac delta function (or distribution), also known as the unit impulse, is a generalized function on the real numbers, whose value is zero everywhere except at zero, and whose integral over the entire real line ...
\delta or any other
compactly supported In mathematics, the support of a real-valued function f is the subset of the function domain of elements that are not mapped to zero. If the domain of f is a topological space, then the support of f is instead defined as the smallest closed set ...
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 process of reducing a signal’s energy outside a specific frequency range, keeping only the desired part of the signal’s spectrum. This technique is crucial in signal processing and communications to ensure signals stay cl ...
function) and \mathcal is the (unitary, ordinary frequency)
Fourier transform In mathematics, the Fourier transform (FT) is an integral transform that takes a function as input then outputs another function that describes the extent to which various frequencies are present in the original function. The output of the tr ...
. Functions \alpha which are not smooth can be made smooth using a
mollifier In mathematics, mollifiers (also known as ''approximations to the identity'') are particular smooth functions, used for example in distribution theory to create sequences of smooth functions approximating nonsmooth (generalized) functions, via ...
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 cal ...
.,1,1,1,../math> which, interpreted as the coefficients of a
linear combination In mathematics, a linear combination or superposition is an Expression (mathematics), expression constructed from a Set (mathematics), set of terms by multiplying each term by a constant and adding the results (e.g. a linear combination of ''x'' a ...
of
Dirac delta function In mathematical analysis, the Dirac delta function (or distribution), also known as the unit impulse, is a generalized function on the real numbers, whose value is zero everywhere except at zero, and whose integral over the entire real line ...
s, forms a
Dirac comb In mathematics, a Dirac comb (also known as sha function, impulse train or sampling function) is a periodic function, periodic Function (mathematics), function with the formula \operatorname_(t) \ := \sum_^ \delta(t - k T) for some given perio ...
. 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 A discrete-event simulation (DES) models the operation of a system as a (discrete) sequence of events in time. Each event occurs at a particular instant in time and marks a change of state in the system. Between consecutive events, no change in th ...
*
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 In mathematical dynamics, discrete time and continuous time are two alternative frameworks within which variables that evolve over time are modeled. Discrete time Discrete time views values of variables as occurring at distinct, separate "poi ...
*
Finite difference method In numerical analysis, finite-difference methods (FDM) are a class of numerical techniques for solving differential equations by approximating Derivative, derivatives with Finite difference approximation, finite differences. Both the spatial doma ...
*
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 ...
*
Interpolation In the mathematics, mathematical field of numerical analysis, interpolation is a type of estimation, a method of constructing (finding) new data points based on the range of a discrete set of known data points. In engineering and science, one ...
*
Smoothing In statistics and image processing, to smooth a data set is to create an approximating function that attempts to capture important patterns in the data, while leaving out noise or other fine-scale structures/rapid phenomena. In smoothing, the d ...
*
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 studyin ...


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