pub struct NoxTuning(/* private fields */);Expand description
Configuration for the NOx Index algorithm.
Implementations§
Source§impl NoxTuning
impl NoxTuning
Sourcepub fn new(
index_offset: i16,
learning_time_offset: i16,
learning_time_gain: i16,
gating_max_durations: i16,
gain_factor: i16,
) -> Result<Self, DataError>
pub fn new( index_offset: i16, learning_time_offset: i16, learning_time_gain: i16, gating_max_durations: i16, gain_factor: i16, ) -> Result<Self, DataError>
Creates a new NoxTuning Index configuration:
index_offset: NOx Index representing typical conditions. Range 1 - 250, Default: 1.learning_time_offset: Time constant to estimate the offset from the history in hours. After twice the learning time events are forgotten. Range 1 - 1,000h, Default 12h.learning_time_gain: Time constant to estimate the gain from the history in hours. After twice the learning time events are forgotten. Range 1 - 1,000h, Default 12h.gating_max_durations: Maximum duration the estimator freezes on a high NOx index signal. Zero disables the gating. Range 0 - 3,000min, Default: 720min.gain_factor: Factor to amplify/attunate the NOx index output. Range 1 - 1,000, Default: 230.
§Errors
ValueOutOfRange`: If the values with scaling are not in range.
Trait Implementations§
Source§impl TryFrom<&[u8]> for NoxTuning
impl TryFrom<&[u8]> for NoxTuning
impl StructuralPartialEq for NoxTuning
Auto Trait Implementations§
impl Freeze for NoxTuning
impl RefUnwindSafe for NoxTuning
impl Send for NoxTuning
impl Sync for NoxTuning
impl Unpin for NoxTuning
impl UnwindSafe for NoxTuning
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more