13 #ifndef _KALMAN_FILTER_
14 #define _KALMAN_FILTER_
18 #define _CALCULATE_DERIVATIVES_ 0x0001
19 #define _CALCULATE_PROCESS_NOISE_ 0x0002
23 #define _TFUN_FAILURE_ 0x0001
24 #define _NFUN_FAILURE_ 0x0002
25 #define _XFUN_FAILURE_ 0x0004
26 #define _HFUN_FAILURE_ 0x0008
27 #define _DSINV_FAILURE_ 0x0010
28 #define _POSITIVITY_FIX_ 0x0020
29 #define _CHAIN_FAILURE_ 0x0040
31 #define _NDF_FAILURE_ 0x0080
32 #define _STRUST_FAILURE_ 0x0100
33 #define _WORST_NODE_IMMUTABLE_ 0x0200
38 #define _FATAL_FAILURE_MASK_ 0x005F
42 #define _TRUST_SMOOTHER_FCN_ 0x0001
43 #define _TRUST_FILTER_FCN_ 0x0002
45 #define _KF_RETURN_(ret, message, what) \
46 _RETURN_((ret), (mVerbosityLevel >= what ? message : 0))
53 #define _CHAIN_RETURN_(ret) return((ret)|mExtraReturnBits)
57 #define _MAX_FIXABLE_POSITIVITY_SCREWUP_DEFAULT_ (1.20)
59 #define _POSITIVITY_CORRELATION_FIX_DEFAULT_ (0.99)
63 #define _RF_CUTOFF_DEFAULT_ (1E-11)
65 #define _FIRED_RPLANE_PREFIX_ "fired-node-min="
74 #define _MIN_SMOOTHER_CHI_SQUARE_CCDF_DEFAULT_ (0.001)
79 #define _MIN_FILTER_CHI_SQUARE_CCDF_DEFAULT_ (0.003)
106 double positivityCorrelationFix) {
115 const bool nonLinearTransportFlags[2]);