#include "ui/base/prediction/kalman_filter.h"
#include "base/check_op.h"
namespace {
constexpr uint32_t kStableIterNum = …;
constexpr double kSigmaProcess = …;
constexpr double kSigmaMeasurement = …;
gfx::Matrix3F GetStateTransition(double kDt) { … }
gfx::Matrix3F GetProcessNoise(double kDt) { … }
}
namespace ui {
KalmanFilter::KalmanFilter()
: … { … }
KalmanFilter::~KalmanFilter() = default;
const gfx::Vector3dF& KalmanFilter::GetStateEstimation() const { … }
bool KalmanFilter::Stable() const { … }
void KalmanFilter::Update(double observation, double dt) { … }
void KalmanFilter::Reset() { … }
double KalmanFilter::GetPosition() const { … }
double KalmanFilter::GetVelocity() const { … }
double KalmanFilter::GetAcceleration() const { … }
void KalmanFilter::Predict(double dt) { … }
}