Trait movavg::MovAvgAccu
source · pub trait MovAvgAccu<T>: Copy {
// Required method
fn recalc_accu(
self,
first_value: Self,
input_value: Self,
window_buffer: &[T]
) -> Result<Self, &'static str>;
}
Expand description
Internal accumulator calculation trait for integers and floats.
This usually does not have to be implemented by the library user.
The movavg
crate implements this trait for all core integers and floats.
Self
is the accumulator type A
.
T
is the SMA input value type.