Conversion of continuous functions into discrete counterparts
A solution to a discretized partial differential equation, obtained with thefinite element method.
Inapplied mathematics,discretization is the process of transferringcontinuous functions, models, variables, and equations intodiscrete 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 abinary variable (creating adichotomy formodeling purposes, as inbinary classification).
Discretization is also related todiscrete mathematics, and is an important component ofgranular computing. In this context,discretization may also refer to modification of variable or categorygranularity, as when multiple discrete variables are aggregated or multiple discrete categories fused.
Whenever continuous data isdiscretized, there is always some amount ofdiscretization error. The goal is to reduce the amount to a level considerednegligible for themodeling purposes at hand.
The equation for the discretized measurement noise is a consequence of the continuous measurement noise being defined with a power spectral density.[1]
A clever trick to computeAd andBd in one step is by utilizing the following property:[2]: p. 215
WhereAd andBd are the discretized state-space matrices.
Numerical evaluation ofQd 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 it[3]The discretized process noise is then evaluated by multiplying the transpose of the lower-right partition ofG with the upper-right partition ofG:
Starting with the continuous modelwe know that thematrix exponential isand by premultiplying the model we getwhich we recognize asand by integrating,which is an analytical solution to the continuous model.
Now we want to discretise the above expression. We assume thatu isconstant during each timestep.We recognize the bracketed expression as, and the second term can be simplified by substituting with the function. Note that. We also assume thatu is constant during theintegral, which in turn yields
which is an exact solution to the discretization problem.
WhenA is singular, the latter expression can still be used by replacing by itsTaylor expansion,This yieldswhich is the form used in practice.
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. The approximate solution then becomes:
This is also known as theEuler method, which is also known as the forward Euler method. Other possible approximations are, otherwise known as the backward Euler method and, which is known as thebilinear transform, or Tustin transform. Each of these approximations has different stability properties. The bilinear transform preserves the instability of the continuous-time system.
Instatistics 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.
As an example, discretization of the function that is constantly yields thesequence which, interpreted as the coefficients of alinear combination ofDirac delta functions, forms aDirac comb. If additionallytruncation is applied, one obtains finite sequences, e.g.. They are discrete in both, time and frequency.