pub struct BollingerParams {
pub period: usize,
pub num_std: f64,
pub stdev: StdevKind,
}Expand description
Bollinger parameter pack.
Fields§
§period: usize§num_std: f64Multiplier on window stdev (typically 2.0).
stdev: StdevKindSample (n−1) or population (n) stdev. Default: sample.
Implementations§
Trait Implementations§
Source§impl Clone for BollingerParams
impl Clone for BollingerParams
Source§fn clone(&self) -> BollingerParams
fn clone(&self) -> BollingerParams
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 BollingerParams
Source§impl Debug for BollingerParams
impl Debug for BollingerParams
Source§impl PartialEq for BollingerParams
impl PartialEq for BollingerParams
impl StructuralPartialEq for BollingerParams
Auto Trait Implementations§
impl Freeze for BollingerParams
impl RefUnwindSafe for BollingerParams
impl Send for BollingerParams
impl Sync for BollingerParams
impl Unpin for BollingerParams
impl UnsafeUnpin for BollingerParams
impl UnwindSafe for BollingerParams
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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