StateEstimation::StateEstimator
StateEstimation::StateEstimator
State estimator for smoothing and outlier detection on grouped data. More…
#include <StateEstimator.hpp>
Public Functions
| Name | |
|---|---|
| StateEstimator(std::unique_ptr< IFilter > filter_prototype, std::unique_ptr< IFeatureExtractor< DataType > > feature_extractor) Construct a new StateEstimator. |
|
| template <typename Source > SmoothedGroupResults |
smoothGroups(Source && data_source, EntityGroupManager const & group_manager, TimeFrameIndex start_frame, TimeFrameIndex end_frame) Smooth all groups over a range of frames. |
| template <typename Source > OutlierDetectionResults |
detectOutliers(Source && data_source, EntityGroupManager const & group_manager, TimeFrameIndex start_frame, TimeFrameIndex end_frame, double threshold_sigma =3.0) Detect outliers in grouped data based on innovation statistics. |
Detailed Description
template <typename DataType >
class StateEstimation::StateEstimator;State estimator for smoothing and outlier detection on grouped data.
Template Parameters:
- DataType raw observation type (e.g., Line2D)
This class performs forward-backward smoothing using a Kalman filter (or any IFilter) on data that has already been grouped. It is separate from the assignment problem and can be used for:
- Final smoothing after global assignment
- Outlier detection for manual review
- Quality metrics on tracking results
Public Functions Documentation
function StateEstimator
inline StateEstimator(
std::unique_ptr< IFilter > filter_prototype,
std::unique_ptr< IFeatureExtractor< DataType > > feature_extractor
)Construct a new StateEstimator.
Parameters:
- filter_prototype Prototype filter (cloned for each group)
- feature_extractor Feature extractor for DataType
function smoothGroups
template <typename Source >
inline SmoothedGroupResults smoothGroups(
Source && data_source,
EntityGroupManager const & group_manager,
TimeFrameIndex start_frame,
TimeFrameIndex end_frame
)Smooth all groups over a range of frames.
Parameters:
- data_source Zero-copy data source
- group_manager Group manager with existing assignments
- start_frame Inclusive start frame
- end_frame Inclusive end frame
Return: Smoothed states per group across processed frames
Performs forward filtering followed by backward smoothing (e.g., RTS smoother) for each group independently.
function detectOutliers
template <typename Source >
inline OutlierDetectionResults detectOutliers(
Source && data_source,
EntityGroupManager const & group_manager,
TimeFrameIndex start_frame,
TimeFrameIndex end_frame,
double threshold_sigma =3.0
)Detect outliers in grouped data based on innovation statistics.
Parameters:
- data_source Zero-copy data source
- group_manager Group manager with existing assignments
- start_frame Inclusive start frame
- end_frame Inclusive end frame
- threshold_sigma Number of standard deviations for outlier threshold (default: 3.0)
Return: Outlier detection results with flagged observations
Performs forward filtering and computes innovation (prediction error) for each observation. Outliers are identified as observations with innovation magnitude exceeding a threshold (mean + k * std_dev).
Updated on 2026-11-13 at 20:25:41 +0000