pub struct AssessReport {
pub mean: f32,
pub ds: f32,
pub success: u64,
pub n: u64,
pub three_zero_picks: Set,
pub advancing_picks: Set,
pub zero_three_picks: Set,
}Expand description
Report for estimating how often a concrete pick set earns enough stars.
Fields§
§mean: f32Running mean of stars earned.
ds: f32Sum of squared differences for variance calculation.
success: u64Number of simulations with at least five stars.
n: u64Number of simulated tournaments assessed.
three_zero_picks: SetTeams selected as 3-0 picks.
advancing_picks: SetTeams selected as 3-1/3-2 advancement picks.
zero_three_picks: SetTeams selected as 0-3 picks.
Implementations§
Source§impl AssessReport
impl AssessReport
Sourcepub fn new<I1: IntoIterator<Item = Index>, I2: IntoIterator<Item = Index>, I3: IntoIterator<Item = Index>>(
three_zero_picks: I1,
advanced_picks: I2,
zero_three_picks: I3,
) -> Self
pub fn new<I1: IntoIterator<Item = Index>, I2: IntoIterator<Item = Index>, I3: IntoIterator<Item = Index>>( three_zero_picks: I1, advanced_picks: I2, zero_three_picks: I3, ) -> Self
Construct an assessment report from selected team indices.
Trait Implementations§
Source§impl Add for AssessReport
impl Add for AssessReport
Source§impl Clone for AssessReport
impl Clone for AssessReport
Source§fn clone(&self) -> AssessReport
fn clone(&self) -> AssessReport
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 AssessReport
Source§impl Debug for AssessReport
impl Debug for AssessReport
Source§impl Default for AssessReport
impl Default for AssessReport
Source§fn default() -> AssessReport
fn default() -> AssessReport
Returns the “default value” for a type. Read more
Source§impl Report for AssessReport
impl Report for AssessReport
Source§fn update(&mut self, ss: &SwissSystem)
fn update(&mut self, ss: &SwissSystem)
Update this report with one completed Swiss-system tournament.
Source§fn format(&self, _sim: &Simulation) -> String
fn format(&self, _sim: &Simulation) -> String
Format the aggregated report for the command-line interface.
Auto Trait Implementations§
impl Freeze for AssessReport
impl RefUnwindSafe for AssessReport
impl Send for AssessReport
impl Sync for AssessReport
impl Unpin for AssessReport
impl UnsafeUnpin for AssessReport
impl UnwindSafe for AssessReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more