pub struct Prediction {
pub row: usize,
pub col: usize,
pub interval: Interval,
pub baseline: f64,
pub confidence: f64,
pub horizon_ns: u64,
}Expand description
A prediction about one cell.
Fields§
§row: usize§col: usize§interval: IntervalThe predicted value with its interval.
baseline: f64What the naive baseline predicts, for comparison.
confidence: f64Confidence in 0.0 ..= 1.0.
horizon_ns: u64How far ahead this reaches.
Implementations§
Source§impl Prediction
impl Prediction
Sourcepub fn is_informative(&self) -> bool
pub fn is_informative(&self) -> bool
Whether this prediction says anything the baseline does not.
Trait Implementations§
Source§impl Clone for Prediction
impl Clone for Prediction
impl Copy for Prediction
Source§impl Debug for Prediction
impl Debug for Prediction
Source§impl<'de> Deserialize<'de> for Prediction
impl<'de> Deserialize<'de> for Prediction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Prediction
impl PartialEq for Prediction
Source§impl Serialize for Prediction
impl Serialize for Prediction
impl StructuralPartialEq for Prediction
Auto Trait Implementations§
impl Freeze for Prediction
impl RefUnwindSafe for Prediction
impl Send for Prediction
impl Sync for Prediction
impl Unpin for Prediction
impl UnsafeUnpin for Prediction
impl UnwindSafe for Prediction
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