DiscreteLQEstimatorGains
✖
DiscreteLQEstimatorGains
gives the optimal discrete-time estimator gain matrix with sampling period τ for the continuous-time StateSpaceModel ssm, with process and measurement noise covariance matrices w and v.
specifies sensors as the noisy measurements of ssm.
specifies dinputs as the deterministic inputs of ssm.
Details and Options

- The standard state-space model ssm can be given as StateSpaceModel[{a,b,c,d}], where a, b, c, and d represent the state, input, output, and transmission matrices of the continuous-time system
.
- The descriptor continuous-time state-space model ssm defined by
can be given as StateSpaceModel[{a,b,c,d,e}].
- The input
can include the process noise
, as well as deterministic inputs
.
- The argument dinputs is a list of integers specifying the positions of
in
.
- The output
consists of the noisy measurements
, as well as other outputs.
- The argument sensors is a list of integers specifying the positions of
in
.
- DiscreteLQEstimatorGains[ssm,{…},τ] is equivalent to DiscreteLQEstimatorGains[{ssm, All,None},{…},τ].
- The noisy measurements are modeled as
, where
and
are the submatrices of
and
associated with
, and
is the noise.
- The process and measurement noises are assumed to be white and Gaussian:
-
,
process noise ,
measurement noise - The estimator with the optimal gain minimizes
, where
is the estimated state vector.
- DiscreteLQEstimatorGains computes the estimator gains based on the discrete equivalent of the noise matrices.
- The state-space model ssm is discretized using the zero-order hold method.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (3)Survey of the scope of standard use cases
Compute the discrete-time Kalman gains for a state-space model:

https://wolfram.com/xid/0ejrq8bz9uwp102keduac-b0ghau

https://wolfram.com/xid/0ejrq8bz9uwp102keduac-nf6be

The gains based on the measurement of just the second output:

https://wolfram.com/xid/0ejrq8bz9uwp102keduac-3tucws

The gains for a system in which all inputs except the first are stochastic:

https://wolfram.com/xid/0ejrq8bz9uwp102keduac-el6ya

https://wolfram.com/xid/0ejrq8bz9uwp102keduac-6ko45l

Find the optimal gains for a descriptor state-space model:

https://wolfram.com/xid/0ejrq8bz9uwp102keduac-r1g9i

Properties & Relations (1)Properties of the function, and connections to other functions
Find estimator gains using DiscreteLQEstimatorGains:

https://wolfram.com/xid/0ejrq8bz9uwp102keduac-i2y59e

https://wolfram.com/xid/0ejrq8bz9uwp102keduac-bn6wl

Create a discrete-time Kalman estimator with the gains and a discretized model:

https://wolfram.com/xid/0ejrq8bz9uwp102keduac-h7hl39
This is different from that obtained by discretizing a continuous-time estimator:

https://wolfram.com/xid/0ejrq8bz9uwp102keduac-yhnf4p
Response of the first estimator in the presence of process and measurement noises:

https://wolfram.com/xid/0ejrq8bz9uwp102keduac-utllod

https://wolfram.com/xid/0ejrq8bz9uwp102keduac-r76zpx

https://wolfram.com/xid/0ejrq8bz9uwp102keduac-xnjvt9

https://wolfram.com/xid/0ejrq8bz9uwp102keduac-y2s8k9
Response of the discretized Kalman estimator:

https://wolfram.com/xid/0ejrq8bz9uwp102keduac-oo3p31

https://wolfram.com/xid/0ejrq8bz9uwp102keduac-80czbn

Wolfram Research (2010), DiscreteLQEstimatorGains, Wolfram Language function, https://reference.wolfram.com/language/ref/DiscreteLQEstimatorGains.html (updated 2012).
Text
Wolfram Research (2010), DiscreteLQEstimatorGains, Wolfram Language function, https://reference.wolfram.com/language/ref/DiscreteLQEstimatorGains.html (updated 2012).
Wolfram Research (2010), DiscreteLQEstimatorGains, Wolfram Language function, https://reference.wolfram.com/language/ref/DiscreteLQEstimatorGains.html (updated 2012).
CMS
Wolfram Language. 2010. "DiscreteLQEstimatorGains." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/DiscreteLQEstimatorGains.html.
Wolfram Language. 2010. "DiscreteLQEstimatorGains." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/DiscreteLQEstimatorGains.html.
APA
Wolfram Language. (2010). DiscreteLQEstimatorGains. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DiscreteLQEstimatorGains.html
Wolfram Language. (2010). DiscreteLQEstimatorGains. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DiscreteLQEstimatorGains.html
BibTeX
@misc{reference.wolfram_2025_discretelqestimatorgains, author="Wolfram Research", title="{DiscreteLQEstimatorGains}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/DiscreteLQEstimatorGains.html}", note=[Accessed: 14-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_discretelqestimatorgains, organization={Wolfram Research}, title={DiscreteLQEstimatorGains}, year={2012}, url={https://reference.wolfram.com/language/ref/DiscreteLQEstimatorGains.html}, note=[Accessed: 14-March-2025
]}