pub struct Rating { /* private fields */ }Expand description
Rating represents the skill of a player.
Implementations§
Source§impl Rating
impl Rating
Sourcepub const fn new(mu: f64, sigma: f64) -> Rating
pub const fn new(mu: f64, sigma: f64) -> Rating
Instantiates a Rating with the given values of mu and sigma.
Sourcepub const fn sigma(&self) -> f64
pub const fn sigma(&self) -> f64
Returns the standard deviation on the estimate of the player’s skill.
Sourcepub const fn conservative_estimate(&self) -> f64
pub const fn conservative_estimate(&self) -> f64
Returns the conservative estimate of the player’s skill.
Trait Implementations§
Source§impl PartialOrd for Rating
impl PartialOrd for Rating
impl Copy for Rating
impl StructuralPartialEq for Rating
Auto Trait Implementations§
impl Freeze for Rating
impl RefUnwindSafe for Rating
impl Send for Rating
impl Sync for Rating
impl Unpin for Rating
impl UnwindSafe for Rating
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