Discretized Momentum Equations
   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 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, wher ...
(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 A model is an informative representation of an object, person or system. The term originally denoted the plans of a building in late 16th-century English, and derived via French and Italian ultimately from Latin ''modulus'', a measure. Models c ...
purposes, as in
binary classification Binary classification is the task of classifying the elements of a set into two groups (each called ''class'') on the basis of a classification rule. Typical binary classification problems include: * Medical testing to determine if a patient has c ...
). 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 (GrC) is an emerging computing paradigm of information processing that concerns the processing of complex information entities called "information granules", which arise in the process of data abstraction and derivation of knowl ...
. 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 plans of a building in late 16th-century English, and derived via French and Italian ultimately from Latin ''modulus'', a measure. Models c ...
purposes at hand. The terms ''discretization '' and '' quantization'' often have the same
denotation In linguistics and philosophy, the denotation of an expression is its literal meaning. For instance, the English word "warm" denotes the property of being warm. Denotation is contrasted with other aspects of meaning including connotation. For inst ...
but not always identical
connotations A connotation is a commonly understood cultural or emotional association that any given word or phrase carries, in addition to its explicit or literal meaning, which is its denotation. A connotation is frequently described as either positive or ...
. (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 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 called the Euler method) is a method for the approximate numerical solution of a stochastic differential equation (SDE). It is an extension of the Euler method for ordinary differential equations ...
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 sign ...
.


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 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 paramete ...
, suitable for numerical computing. The following continuous-time
state space model In control engineering, a state-space representation is a mathematical model of a physical system as a set of input, output and state variables related by first-order differential equations or difference equations. State variables are variables wh ...
:\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 sign ...
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 multiplica ...
:\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 In mathematics, the matrix exponential is a matrix function on 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 exponential gives ...
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 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 serie ...
, : 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 In mathematics and computational science, the Euler method (also called forward Euler method) is a first-order numerical procedure for solving ordinary differential equations (ODEs) with a given initial value. It is the most basic explicit m ...
, 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 function In mathematics, generalized functions are objects extending the notion of functions. There is more than one recognized theory, for example the theory of distributions. Generalized functions are especially useful in making discontinuous functions ...
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 pointwise product of their Fourier transforms. More generally, convolution in one domain (e.g. ...
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 In mathematics, a Dirac comb (also known as shah function, impulse train or sampling function) is a periodic function with the formula \operatorname_(t) \ := \sum_^ \delta(t - k T) for some given period T. Here ''t'' is a real variable and the ...
, \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 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 In mathematics, the support of a real-valued function f is the subset of the function domain containing the elements which are not mapped to zero. If the domain of f is a topological space, then the support of f is instead defined as the smalles ...
function), \alpha is a
smooth Smooth may refer to: Mathematics * Smooth function, a function that is infinitely differentiable; used in calculus and topology * Smooth manifold, a differentiable manifold for which all the transition maps are smooth functions * Smooth algebrai ...
, 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 In mathematics, mollifiers (also known as ''approximations to the identity'') are smooth functions with special properties, used for example in distribution theory to create sequences of smooth functions approximating nonsmooth (generalized) f ...
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 In mathematics, a Dirac comb (also known as shah function, impulse train or sampling function) is a periodic function with the formula \operatorname_(t) \ := \sum_^ \delta(t - k T) for some given period T. Here ''t'' is a real variable and the ...
. 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 t ...
*
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 "po ...
*
Finite difference method In numerical analysis, finite-difference methods (FDM) are a class of numerical techniques for solving differential equations by approximating derivatives with finite differences. Both the spatial domain and time interval (if applicable) are di ...
*
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 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 dat ...
*
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 ...


References


Further reading

* * * *


External links

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