pub struct Forecast {
pub predicted_value: f32,
pub slope: f32,
pub ewma: f32,
pub confidence: f32,
pub horizon: usize,
}Expand description
A forecast prediction for a metric.
Fields§
§predicted_value: f32Predicted value horizon samples into the future.
slope: f32Rate of change per sample (slope from linear regression).
ewma: f32EWMA of recent values (smoothing out noise).
confidence: f32Confidence in the prediction (0.0–1.0). Based on variance of residuals — lower variance = higher confidence.
horizon: usizeHow many samples ahead the prediction is.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Forecast
impl<'de> Deserialize<'de> for Forecast
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
Auto Trait Implementations§
impl Freeze for Forecast
impl RefUnwindSafe for Forecast
impl Send for Forecast
impl Sync for Forecast
impl Unpin for Forecast
impl UnsafeUnpin for Forecast
impl UnwindSafe for Forecast
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