pub struct CalmnessModel { /* private fields */ }Expand description
Calmness analysis model
Uses the ratio of alpha+theta power to beta power to estimate how calm or alert the user is.
The model outputs a score from 0.0 (very alert) to 1.0 (very calm).
Implementations§
Source§impl CalmnessModel
impl CalmnessModel
Trait Implementations§
Source§impl Model for CalmnessModel
impl Model for CalmnessModel
Source§type Output = CalmnessOutput
type Output = CalmnessOutput
The output type produced by this model
Source§fn min_samples(&self) -> usize
fn min_samples(&self) -> usize
Get the minimum number of samples required for analysis
Source§fn process(&mut self, buffer: &SampleBuffer) -> Option<Self::Output>
fn process(&mut self, buffer: &SampleBuffer) -> Option<Self::Output>
Process a buffer of samples and produce output Read more
Source§fn is_ready(&self, buffer: &SampleBuffer) -> bool
fn is_ready(&self, buffer: &SampleBuffer) -> bool
Check if the model has enough data to produce output
Auto Trait Implementations§
impl Freeze for CalmnessModel
impl RefUnwindSafe for CalmnessModel
impl Send for CalmnessModel
impl Sync for CalmnessModel
impl Unpin for CalmnessModel
impl UnsafeUnpin for CalmnessModel
impl UnwindSafe for CalmnessModel
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