Expand description
Simple stability-oriented helpers.
The crate provides scalar classification helpers and a settling-time helper over sampled response values.
§Examples
use use_stability::{classify_gain, is_bounded, settling_time, Stability};
assert_eq!(classify_gain(0.8, 1.0).unwrap(), Stability::Stable);
assert!(is_bounded(&[0.5, -0.5, 0.25], 1.0).unwrap());
assert_eq!(settling_time(&[1.4, 1.05, 1.01, 1.0], 1.0, 0.05, 0.5).unwrap(), Some(0.5));