pub struct RollingMae { /* private fields */ }Expand description
Rolling Mean Absolute Error.
Implementations§
Trait Implementations§
Source§impl Clone for RollingMae
impl Clone for RollingMae
Source§fn clone(&self) -> RollingMae
fn clone(&self) -> RollingMae
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 moreSource§impl Debug for RollingMae
impl Debug for RollingMae
Source§impl Metric for RollingMae
impl Metric for RollingMae
Source§type Prediction = f64
type Prediction = f64
The prediction type for this metric.
Source§fn update(&mut self, truth: f64, prediction: f64) -> Result<(), RillError>
fn update(&mut self, truth: f64, prediction: f64) -> Result<(), RillError>
Incorporate a single observation.
Source§fn value(&self) -> Option<f64>
fn value(&self) -> Option<f64>
Current metric value, or
None if not enough data has been seen.Source§fn samples_seen(&self) -> u64
fn samples_seen(&self) -> u64
How many observations have been incorporated.
Auto Trait Implementations§
impl Freeze for RollingMae
impl RefUnwindSafe for RollingMae
impl Send for RollingMae
impl Sync for RollingMae
impl Unpin for RollingMae
impl UnsafeUnpin for RollingMae
impl UnwindSafe for RollingMae
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