Extended Kalman Filter (EKF) Step Calculator

Simulate one complete EKF predict-update cycle — see Kalman gain, innovation, updated state estimate, and updated covariance for any combination of process noise and measurement noise.

UDHY Tools / Extended Kalman Filter (EKF) Step Calculatorafety Distance Calculator

⚙️ Input Parameters

Prior State (before predict step)
Current best position estimate
Current uncertainty (σ²)
Predict Step
Model uncertainty per step. Higher Q = less trust in prediction
Update Step
Sensor reading this step
GPS: 1–25 | LiDAR: 0.001–0.01

📊 Results

📊

Enter prior state, covariance, process noise, and measurement to simulate one complete EKF predict-update cycle.

Updated State Estimate x̂
m
Predicted covariance P⁻ = P + Q
Kalman Gain K = P⁻/(P⁻+R)
Innovation z − x̂ (residual)
State correction K × innovation
Updated covariance P = (1−K)P⁻

Understanding the EKF: The Engine Behind AV Localisation

What This Calculates

One complete EKF cycle. The predict step propagates state and grows covariance by Q (how much the real world can deviate from your model). The update step computes Kalman gain K — the optimal weight to apply to the measurement’s innovation — then adjusts the state estimate and reduces covariance. Covariance always decreases after a valid measurement: the filter learned something.

When to Use It

  • Understanding how Q and R values affect filter behaviour before tuning
  • Teaching EKF/Kalman filter concepts to students or team members
  • Verifying manual EKF calculations during filter design
  • Understanding why high-R (noisy sensor) gets low Kalman gain
  • Initialising Q and R matrices for GPS/IMU/LiDAR fusion filters

Formula

PREDICT: P⁻ = P + QUPDATE: K = P⁻ / (P⁻ + R) innovation = z − x̂ x̂_new = x̂ + K × innovation P_new = (1 − K) × P⁻K → 0: trust prediction more K → 1: trust measurement more
Built by Dr. Dilip Kumar Limbu · Co-Founder, MooVita · Former Principal Scientist, A*STAR · UDHY Engineering Tools

FAQs on xtended Kalman Filter (EKF) Step Calculator

Scroll to Top