pub struct ForecastResult {
pub forecast: Vec<f64>,
pub method: ForecastMethod,
pub ci_lower: Vec<f64>,
pub ci_upper: Vec<f64>,
pub mae: f64,
pub rmse: f64,
pub n_points: usize,
}Expand description
Result of a forecast.
Fields§
§forecast: Vec<f64>Forecasted values.
method: ForecastMethodMethod used.
ci_lower: Vec<f64>95% CI lower bounds.
ci_upper: Vec<f64>95% CI upper bounds.
mae: f64Mean absolute error of the fit.
rmse: f64Root mean squared error of the fit.
n_points: usizeNumber of data points used.
Implementations§
Trait Implementations§
Source§impl Clone for ForecastResult
impl Clone for ForecastResult
Source§fn clone(&self) -> ForecastResult
fn clone(&self) -> ForecastResult
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 ForecastResult
impl Debug for ForecastResult
Source§impl<'de> Deserialize<'de> for ForecastResult
impl<'de> Deserialize<'de> for ForecastResult
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 ForecastResult
impl RefUnwindSafe for ForecastResult
impl Send for ForecastResult
impl Sync for ForecastResult
impl Unpin for ForecastResult
impl UnsafeUnpin for ForecastResult
impl UnwindSafe for ForecastResult
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