DSP.KalmanFilterSystem object
使用卡尔曼过滤器估算系统测量和状态
Description
这Kalmanfilter
是用于递归获得线性最佳滤波解决方案的估计器。该估计是在没有精确了解基础动态系统的情况下进行的。卡尔曼过滤器通过状态实现以下线性离散时间过程,X,在kThtime-step:
((state equation). This measurement,z,以:
(测量方程)。
这Kalman filter algorithm computes the following two steps recursively:
Prediction: Process parameters x (state) and P (state error covariance) are estimated using the previous state,
校正:使用当前测量值纠正状态和误差协方差,
To filter each channel of the input:
笔记
从R2016b开始,而不是使用step
method to perform the operation defined by the System object™, you can call the object with arguments, as if it were a function. For example,y = step(obj,x)
andy = obj(x)
执行等效操作。
建造
kalman = dsp.KalmanFilter
returns the Kalman filter System object,kalman
,具有参数的默认值。
kalman = dsp.kalmanfilter('
returns an Kalman filter System object,属性名称
',适当的价值
,...))kalman
,每个属性设置为指定值。
kalman = dsp.kalmanfilter(STMatrix, MMatrix, PNCovariance, MNCovariance, CIMatrix, 'PropertyName', PropertyValue, ...)
返回卡尔曼过滤系统对象,kalman
。这StateTransitionMatrix
property is set toSTMatrix
,,,,andMeasurementMatrix
property is set tommatrix
。In addition, theProcessNoisecovariance
属性设置为PNCOVARIANCE
,,,,MeasurementNoiseCovariance
属性设置为MNCovariance
,,,,ControlInputMatrix
属性设置为CIMatrix
。Other specified properties are set to the specified values.
特性
|
国家过渡模型 指定 |
|
控制输入与状态之间的关系模型 指定 |
|
Model of relation between states and measurement output 指定 |
|
Covariance of process noise 指定 |
|
测量噪声的协方差 指定 |
|
状态的初始值 指定an initial estimate of the states of the model as a column vector with length equal to the number of states. The default value is |
|
Initial value for state error covariance 指定an initial estimate for covariance of the state error, as a square matrix with each dimension equal to the number of states. The default value is |
|
禁用过滤器 指定as a scalar logical value, disabling System object filters from performing the correction step after the prediction step in the Kalman filter algorithm. The default value is |
|
Presence of a control input 使用标量逻辑值指定是否存在控件输入。默认值是 |
Methods
reset | 重置卡尔曼过滤器的内部状态 |
step | 使用Kalman过滤对象输入过滤器 |
Common to All System Objects | |
---|---|
release |
一个llow System object property value changes |
Examples
一个lgorithms
This object implements the algorithm, inputs, and outputs described on the卡尔曼过滤器block reference page. The object properties correspond to the block parameters.
references
[1] Greg Welch and Gary Bishop, An Introduction to the Kalman Filter, Technical Report TR95 041. University of North Carolina at Chapel Hill: Chapel Hill, NC., 1995.