![]() |
ProtoTracer
1.0
Real-time 3D rendering and animation engine
|
Applies Kalman filtering independently to each component of a 3D vector. More...
#include <VectorKalmanFilter.h>
Public Member Functions | |
VectorKalmanFilter (T processNoise, T sensorNoise, T errorCovariance) | |
Constructs a VectorKalmanFilter with specified parameters. | |
Vector3D | Filter (Vector3D input) |
Filters a 3D vector input using the Kalman filter. | |
Private Attributes | |
KalmanFilter< T > | X |
Kalman filter for the X component of the vector. | |
KalmanFilter< T > | Y |
Kalman filter for the Y component of the vector. | |
KalmanFilter< T > | Z |
Kalman filter for the Z component of the vector. | |
Applies Kalman filtering independently to each component of a 3D vector.
The VectorKalmanFilter
class uses three KalmanFilter
instances to process the X, Y, and Z components of a Vector3D
, providing a smooth output for noisy 3D data.
T | The numeric type used for calculations (e.g., float or double ). |
Definition at line 28 of file VectorKalmanFilter.h.
Constructs a VectorKalmanFilter
with specified parameters.
Initializes the Kalman filters for each component with the given process noise, sensor noise, and error covariance.
processNoise | The process noise for the Kalman filter. |
sensorNoise | The sensor noise for the Kalman filter. |
errorCovariance | The initial error covariance for the Kalman filter. |
Definition at line 4 of file VectorKalmanFilter.cpp.
Filters a 3D vector input using the Kalman filter.
Applies Kalman filtering independently to the X, Y, and Z components of the input vector.
input | The input Vector3D to filter. |
Vector3D
. Definition at line 11 of file VectorKalmanFilter.cpp.
|
private |
Kalman filter for the X component of the vector.
Definition at line 30 of file VectorKalmanFilter.h.
|
private |
Kalman filter for the Y component of the vector.
Definition at line 31 of file VectorKalmanFilter.h.
|
private |
Kalman filter for the Z component of the vector.
Definition at line 32 of file VectorKalmanFilter.h.