Package org.hipparchus.util
Class MerweUnscentedTransform
java.lang.Object
org.hipparchus.util.AbstractUnscentedTransform
org.hipparchus.util.MerweUnscentedTransform
- All Implemented Interfaces:
UnscentedTransformProvider
Unscented transform as defined by Merwe and Wan.
The unscented transform uses three parameters: alpha, beta and kappa. Alpha determines the spread of the sigma points around the process state, kappa is a secondary scaling parameter, and beta is used to incorporate prior knowledge of the distribution of the process state.
- Since:
- 2.2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleDefault value for alpha (0.5, see reference).static final doubleDefault value for beta (2.0, see reference).static final doubleDefault value for kappa, (0.0, see reference). -
Constructor Summary
ConstructorsConstructorDescriptionMerweUnscentedTransform(int stateDim) Default constructor.MerweUnscentedTransform(int stateDim, double alpha, double beta, double kappa) Simple constructor. -
Method Summary
Methods inherited from class org.hipparchus.util.AbstractUnscentedTransform
unscentedTransformMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hipparchus.util.UnscentedTransformProvider
getUnscentedCovariance, getUnscentedMeanState, inverseUnscentedTransform
-
Field Details
-
DEFAULT_ALPHA
public static final double DEFAULT_ALPHADefault value for alpha (0.5, see reference).- See Also:
-
DEFAULT_BETA
public static final double DEFAULT_BETADefault value for beta (2.0, see reference).- See Also:
-
DEFAULT_KAPPA
public static final double DEFAULT_KAPPADefault value for kappa, (0.0, see reference).- See Also:
-
-
Constructor Details
-
MerweUnscentedTransform
public MerweUnscentedTransform(int stateDim) Default constructor.This constructor uses default values for alpha, beta, and kappa.
- Parameters:
stateDim- the dimension of the state- See Also:
-
MerweUnscentedTransform
public MerweUnscentedTransform(int stateDim, double alpha, double beta, double kappa) Simple constructor.- Parameters:
stateDim- the dimension of the statealpha- scaling control parameter (determines the spread of the sigma points around the process state)beta- free parameter (used to incorporate prior knowledge of the distribution of the process state)kappa- secondary scaling factor (usually set to 0.0)
-
-
Method Details
-
getWc
Get the covariance weights.- Returns:
- the covariance weights
-
getWm
Get the mean weights.- Returns:
- the mean weights
-
getMultiplicationFactor
protected double getMultiplicationFactor()Get the factor applied to the covariance matrix during the unscented transform.- Specified by:
getMultiplicationFactorin classAbstractUnscentedTransform- Returns:
- the factor applied to the covariance matrix during the unscented transform
-