structs.ukf_data
Settings of the unscented Kalman filter.
SigmaPointsSettings
¶
Parameters and weights of the Van der Merwe sigma points.
create(n, alpha, beta, kappa=0.0)
classmethod
¶
Compute the weights from the scaling parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n
|
int
|
The dimension of the state. |
required |
alpha
|
float
|
The spread of the sigma points around the mean. |
required |
beta
|
float
|
Prior knowledge of the distribution, 2 is optimal for Gaussians. |
required |
kappa
|
float
|
Secondary scaling parameter. |
0.0
|
Returns:
| Type | Description |
|---|---|
SigmaPointsSettings
|
The settings with the weights for the mean and the covariance. |
Source code in drone_estimators/structs/ukf_data.py
UKFSettings
¶
Settings of the unscented Kalman filter.
create(SPsettings, Q, R, fx, hx)
classmethod
¶
Create the settings from the sigma point settings, noise covariances, and the model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
SPsettings
|
SigmaPointsSettings
|
The sigma point settings. |
required |
Q
|
Array
|
The process noise covariance. |
required |
R
|
Array
|
The measurement noise covariance. |
required |
fx
|
Callable[[Array, Array, Array, Array, Array, Array, Array | None, Array | None], tuple[Array, Array, Array, Array, Array | None]]
|
The continuous dynamics function. |
required |
hx
|
Callable[[Array, Array, Array, Array, Array, Array, Array | None, Array | None], Array]
|
The observation function. |
required |
Returns:
| Type | Description |
|---|---|
UKFSettings
|
The settings. |