pub struct ExponentialMovingAverage { /* private fields */ }Expand description
指数移動平均 (EMA)。
alpha が大きいほど最新の値に重みが偏る。
EMA_t = alpha * value + (1 - alpha) * EMA_{t-1}
Implementations§
Trait Implementations§
Source§impl Clone for ExponentialMovingAverage
impl Clone for ExponentialMovingAverage
Auto Trait Implementations§
impl Freeze for ExponentialMovingAverage
impl RefUnwindSafe for ExponentialMovingAverage
impl Send for ExponentialMovingAverage
impl Sync for ExponentialMovingAverage
impl Unpin for ExponentialMovingAverage
impl UnsafeUnpin for ExponentialMovingAverage
impl UnwindSafe for ExponentialMovingAverage
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