T
- the type of the measurementspublic abstract class AbstractKalmanFilter<T extends Measurement> extends Object implements KalmanFilter<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractKalmanFilter(MatrixDecomposer decomposer,
ProcessEstimate initialState)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
protected RealMatrix |
computeInnovationCovarianceMatrix(RealMatrix r,
RealMatrix h)
Compute innovation covariance matrix.
|
protected void |
correct(T measurement,
RealMatrix stm,
RealVector innovation,
RealMatrix h,
RealMatrix s)
Perform correction step.
|
ProcessEstimate |
getCorrected()
Get the corrected state.
|
ProcessEstimate |
getPredicted()
Get the predicted state.
|
protected void |
predict(double time,
RealVector predictedState,
RealMatrix stm,
RealMatrix noise)
Perform prediction step.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
estimationStep
protected AbstractKalmanFilter(MatrixDecomposer decomposer, ProcessEstimate initialState)
decomposer
- decomposer to use for the correction phaseinitialState
- initial stateprotected void predict(double time, RealVector predictedState, RealMatrix stm, RealMatrix noise)
time
- process timepredictedState
- predicted state vectorstm
- state transition matrixnoise
- process noise covariance matrixprotected RealMatrix computeInnovationCovarianceMatrix(RealMatrix r, RealMatrix h)
r
- measurement covarianceh
- Jacobian of the measurement with respect to the state
(may be null if measurement should be ignored)protected void correct(T measurement, RealMatrix stm, RealVector innovation, RealMatrix h, RealMatrix s) throws MathIllegalArgumentException
measurement
- single measurement to handlestm
- state transition matrixinnovation
- innovation vector (i.e. residuals)
(may be null if measurement should be ignored)h
- Jacobian of the measurement with respect to the state
(may be null if measurement should be ignored)s
- innovation covariance matrix
(may be null if measurement should be ignored)MathIllegalArgumentException
- if matrix cannot be decomposedpublic ProcessEstimate getPredicted()
getPredicted
in interface KalmanFilter<T extends Measurement>
public ProcessEstimate getCorrected()
getCorrected
in interface KalmanFilter<T extends Measurement>
Copyright © 2016–2020 Hipparchus.org. All rights reserved.