pub struct MonthStatistics {
pub month: u32,
pub samples: usize,
pub mean_return_pct: f64,
pub stdev_return_pct: Option<f64>,
pub positive_share: f64,
}Expand description
What the completed observations of one calendar month say.
Fields§
§month: u321 through 12.
samples: usizeHow many completed years contributed. Published because a mean over three years and one over thirty are not the same claim.
mean_return_pct: f64§stdev_return_pct: Option<f64>Sample standard deviation over the years, None with fewer than two of them — a spread
needs at least two observations, and zero would suggest certainty.
Share of contributing years in which the month closed higher, in 0..=1.
A frequency, not a calibrated probability: it says what happened in these samples years,
not what is likely to happen next.
Trait Implementations§
Source§impl Clone for MonthStatistics
impl Clone for MonthStatistics
Source§fn clone(&self) -> MonthStatistics
fn clone(&self) -> MonthStatistics
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 moreimpl Copy for MonthStatistics
Source§impl Debug for MonthStatistics
impl Debug for MonthStatistics
Source§impl<'de> Deserialize<'de> for MonthStatistics
impl<'de> Deserialize<'de> for MonthStatistics
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 MonthStatistics
impl PartialEq for MonthStatistics
Source§impl Serialize for MonthStatistics
impl Serialize for MonthStatistics
impl StructuralPartialEq for MonthStatistics
Auto Trait Implementations§
impl Freeze for MonthStatistics
impl RefUnwindSafe for MonthStatistics
impl Send for MonthStatistics
impl Sync for MonthStatistics
impl Unpin for MonthStatistics
impl UnsafeUnpin for MonthStatistics
impl UnwindSafe for MonthStatistics
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