pub struct EpisodeBuilder { /* private fields */ }Expand description
Builder for constructing episodes incrementally as observations arrive.
Implementations§
Source§impl EpisodeBuilder
impl EpisodeBuilder
Sourcepub fn open(
&mut self,
timestamp_ns: u64,
grammar_state: GrammarState,
reason_code: ReasonCode,
source: ResidualSource,
)
pub fn open( &mut self, timestamp_ns: u64, grammar_state: GrammarState, reason_code: ReasonCode, source: ResidualSource, )
Open a new episode at the given timestamp with the given state.
Sourcepub fn update(&mut self, residual: f64, drift: f64, slew: f64)
pub fn update(&mut self, residual: f64, drift: f64, slew: f64)
Update the current open episode with a new observation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EpisodeBuilder
impl RefUnwindSafe for EpisodeBuilder
impl Send for EpisodeBuilder
impl Sync for EpisodeBuilder
impl Unpin for EpisodeBuilder
impl UnsafeUnpin for EpisodeBuilder
impl UnwindSafe for EpisodeBuilder
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