STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
autonomous_calibration_engine.DriftDetector Class Reference

Public Member Functions

 __init__ (self, int n_params, int window_size=50)
 add_observation (self, np.ndarray parameters, float timestamp)
float estimate_drift_rate (self)
bool detect_abrupt_change (self, float threshold=3.0)

Public Attributes

 n_params = n_params
 window_size = window_size
deque parameter_history = deque(maxlen=window_size)
deque timestamp_history = deque(maxlen=window_size)

Detailed Description

Detect and quantify parameter drift over time

Definition at line 228 of file autonomous_calibration_engine.py.

Constructor & Destructor Documentation

◆ __init__()

autonomous_calibration_engine.DriftDetector.__init__ ( self,
int n_params,
int window_size = 50 )

Definition at line 231 of file autonomous_calibration_engine.py.

Member Function Documentation

◆ add_observation()

autonomous_calibration_engine.DriftDetector.add_observation ( self,
np.ndarray parameters,
float timestamp )
Add parameter observation

Definition at line 237 of file autonomous_calibration_engine.py.

◆ detect_abrupt_change()

bool autonomous_calibration_engine.DriftDetector.detect_abrupt_change ( self,
float threshold = 3.0 )
Detect abrupt parameter change (e.g., harness swap)

Definition at line 269 of file autonomous_calibration_engine.py.

◆ estimate_drift_rate()

float autonomous_calibration_engine.DriftDetector.estimate_drift_rate ( self)
Estimate rate of parameter drift (norm of change per second).

Returns: drift_rate in parameter units per second

Definition at line 242 of file autonomous_calibration_engine.py.

Member Data Documentation

◆ n_params

autonomous_calibration_engine.DriftDetector.n_params = n_params

Definition at line 232 of file autonomous_calibration_engine.py.

◆ parameter_history

autonomous_calibration_engine.DriftDetector.parameter_history = deque(maxlen=window_size)

Definition at line 234 of file autonomous_calibration_engine.py.

◆ timestamp_history

deque autonomous_calibration_engine.DriftDetector.timestamp_history = deque(maxlen=window_size)

Definition at line 235 of file autonomous_calibration_engine.py.

◆ window_size

autonomous_calibration_engine.DriftDetector.window_size = window_size

Definition at line 233 of file autonomous_calibration_engine.py.


The documentation for this class was generated from the following file: