pub struct KamaParams {
pub period: usize,
pub fast: usize,
pub slow: usize,
}Expand description
Kaufman Adaptive Moving Average parameters.
Efficiency ratio over period maps between fast and slow EMA-style smoothing
constants. Classic desk pack: KamaParams::standard (10, 2, 30).
Fields§
§period: usizeEfficiency-ratio lookback (typically 10).
fast: usizeFast EMA-equivalent period (typically 2).
slow: usizeSlow EMA-equivalent period (typically 30).
Implementations§
Trait Implementations§
Source§impl Clone for KamaParams
impl Clone for KamaParams
Source§fn clone(&self) -> KamaParams
fn clone(&self) -> KamaParams
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 KamaParams
Source§impl Debug for KamaParams
impl Debug for KamaParams
impl Eq for KamaParams
Source§impl Hash for KamaParams
impl Hash for KamaParams
Source§impl PartialEq for KamaParams
impl PartialEq for KamaParams
impl StructuralPartialEq for KamaParams
Auto Trait Implementations§
impl Freeze for KamaParams
impl RefUnwindSafe for KamaParams
impl Send for KamaParams
impl Sync for KamaParams
impl Unpin for KamaParams
impl UnsafeUnpin for KamaParams
impl UnwindSafe for KamaParams
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