Class UnscentedKalmanFilter<T extends Measurement>
- java.lang.Object
-
- org.hipparchus.filtering.kalman.unscented.UnscentedKalmanFilter<T>
-
- Type Parameters:
T- the type of the measurements
- All Implemented Interfaces:
KalmanEstimate,KalmanFilter<T>
public class UnscentedKalmanFilter<T extends Measurement> extends Object implements KalmanFilter<T>
Unscented Kalman filter forunscented process.- Since:
- 2.2
- See Also:
- "Wan, E. A., & Van Der Merwe, R. (2000, October). The unscented Kalman filter for nonlinear estimation. In Proceedings of the IEEE 2000 Adaptive Systems for Signal Processing, Communications, and Control Symposium (Cat. No. 00EX373) (pp. 153-158)"
-
-
Constructor Summary
Constructors Constructor Description UnscentedKalmanFilter(MatrixDecomposer decomposer, UnscentedProcess<T> process, ProcessEstimate initialState, UnscentedTransformProvider utProvider)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessEstimateestimationStep(T measurement)Perform one estimation step.ProcessEstimategetCorrected()Get the corrected state.ProcessEstimategetPredicted()Get the predicted state.RealMatrixgetStateCrossCovariance()Get the cross-covariance between the previous state and the prediction.UnscentedTransformProvidergetUnscentedTransformProvider()Get the unscented transform provider.voidsetObserver(KalmanObserver kalmanObserver)Set the filter observer callback.
-
-
-
Constructor Detail
-
UnscentedKalmanFilter
public UnscentedKalmanFilter(MatrixDecomposer decomposer, UnscentedProcess<T> process, ProcessEstimate initialState, UnscentedTransformProvider utProvider)
Simple constructor.- Parameters:
decomposer- decomposer to use for the correction phaseprocess- unscented process to estimateinitialState- initial stateutProvider- unscented transform provider
-
-
Method Detail
-
estimationStep
public ProcessEstimate estimationStep(T measurement) throws MathRuntimeException
Perform one estimation step.- Specified by:
estimationStepin interfaceKalmanFilter<T extends Measurement>- Parameters:
measurement- single measurement to handle- Returns:
- estimated state after measurement has been considered
- Throws:
MathRuntimeException- if estimation fails
-
setObserver
public void setObserver(KalmanObserver kalmanObserver)
Set the filter observer callback.- Specified by:
setObserverin interfaceKalmanFilter<T extends Measurement>- Parameters:
kalmanObserver- the observer
-
getPredicted
public ProcessEstimate getPredicted()
Get the predicted state.- Specified by:
getPredictedin interfaceKalmanEstimate- Returns:
- predicted state
-
getCorrected
public ProcessEstimate getCorrected()
Get the corrected state.- Specified by:
getCorrectedin interfaceKalmanEstimate- Returns:
- corrected state
-
getStateCrossCovariance
public RealMatrix getStateCrossCovariance()
Get the cross-covariance between the previous state and the prediction. Not required for forward filtering, but required for the smoother.- Specified by:
getStateCrossCovariancein interfaceKalmanEstimate- Returns:
- cross-covariance
-
getUnscentedTransformProvider
public UnscentedTransformProvider getUnscentedTransformProvider()
Get the unscented transform provider.- Returns:
- unscented transform provider
-
-