pub struct StreamingContext<T: SignalType> {
pub buffer: RingBuffer<T>,
pub coefficients: StreamingCoefficients<T>,
pub wavelet: Box<dyn Wavelet>,
pub window: WindowConfig,
pub strategy: UpdateStrategy,
/* private fields */
}Expand description
Streaming transform context maintaining state
Fields§
§buffer: RingBuffer<T>Ring buffer for input data
coefficients: StreamingCoefficients<T>Current transform coefficients
wavelet: Box<dyn Wavelet>Wavelet for transformation
window: WindowConfigWindow configuration
strategy: UpdateStrategyUpdate strategy
Implementations§
Source§impl<T: SignalType> StreamingContext<T>
impl<T: SignalType> StreamingContext<T>
Sourcepub fn new(wavelet: Box<dyn Wavelet>, window: WindowConfig) -> Self
pub fn new(wavelet: Box<dyn Wavelet>, window: WindowConfig) -> Self
Create new streaming context
Sourcepub fn should_update(&self) -> bool
pub fn should_update(&self) -> bool
Check if update should be triggered
Sourcepub fn increment_counters(&mut self)
pub fn increment_counters(&mut self)
Increment counters
Sourcepub fn current_timestamp(&self) -> u64
pub fn current_timestamp(&self) -> u64
Get current timestamp
Auto Trait Implementations§
impl<T> Freeze for StreamingContext<T>
impl<T> !RefUnwindSafe for StreamingContext<T>
impl<T> Send for StreamingContext<T>
impl<T> Sync for StreamingContext<T>
impl<T> Unpin for StreamingContext<T>where
T: Unpin,
impl<T> !UnwindSafe for StreamingContext<T>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more