pub struct RobustBand {
pub median: f64,
pub mad: f64,
pub upper: f64,
pub lower: f64,
}Expand description
A robust rolling threshold band: median +/- k scaled median absolute deviations (MAD),
rather than mean +/- k*stddev, so a handful of outlier bars in the window do not blow out the
band the way a plain stddev-based threshold would.
Fields§
§median: f64§mad: f64§upper: f64§lower: f64Implementations§
Trait Implementations§
Source§impl Clone for RobustBand
impl Clone for RobustBand
Source§fn clone(&self) -> RobustBand
fn clone(&self) -> RobustBand
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 moreimpl Copy for RobustBand
Source§impl Debug for RobustBand
impl Debug for RobustBand
Source§impl PartialEq for RobustBand
impl PartialEq for RobustBand
impl StructuralPartialEq for RobustBand
Auto Trait Implementations§
impl Freeze for RobustBand
impl RefUnwindSafe for RobustBand
impl Send for RobustBand
impl Sync for RobustBand
impl Unpin for RobustBand
impl UnsafeUnpin for RobustBand
impl UnwindSafe for RobustBand
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