#[non_exhaustive]pub struct KswinConfig {
pub alpha: f64,
pub window_size: usize,
pub check_interval: usize,
}Expand description
Configuration for Kswin.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.alpha: f64Significance level for the KS test. Must be in (0, 1). Smaller
values reduce false positives. Defaults to 0.005.
window_size: usizeSize of each window (reference and current). Must be greater than
zero. Larger values improve sensitivity but increase memory and
computation. Defaults to 100.
check_interval: usizeMinimum number of samples between two consecutive KS checks. Must
be greater than zero. The actual check interval is the maximum of
this value and window_size (since both windows must be full).
Defaults to 100.
Trait Implementations§
Source§impl Clone for KswinConfig
impl Clone for KswinConfig
Source§fn clone(&self) -> KswinConfig
fn clone(&self) -> KswinConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KswinConfig
impl Debug for KswinConfig
Auto Trait Implementations§
impl Freeze for KswinConfig
impl RefUnwindSafe for KswinConfig
impl Send for KswinConfig
impl Sync for KswinConfig
impl Unpin for KswinConfig
impl UnsafeUnpin for KswinConfig
impl UnwindSafe for KswinConfig
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