def add_reading(self, sensor_id: str, timestamp: float, value: float, frame_id: int) -> bool:
"""
Add a sensor reading (e.g., lidar point cloud density, camera brightness).
Returns True if accepted, False if deduplicated.
Deduplication logic:
- If this sensor_id's last reading had the same value (floating point ≈ within 1e-6)
and timestamp within duplicate_threshold_ms, reject it.
- Otherwise, accept and add to the sliding window.
"""
pass
def get_windowed_stats(self, sensor_id: str) -> Tuple[int, float, float]:
"""
Return (count, min_value, max_value) for all readings of sensor_id
currently in the window. Readings older than window_size_seconds are
automatically dropped.
"""
pass
def get_stats(self) -> Tuple[int, int, float]:
"""
Return:
- total_processed: total add_reading calls
- duplicates_dropped: how many were rejected as duplicates
- dedup_rate: duplicates_dropped / total_processed
"""
pass