pub struct Glicko2Rating {
pub value: f64,
pub deviation: f64,
pub volatility: f64,
}Expand description
Represents the rating of a player or team on the Glicko2 scale.
Fields§
§value: f64The estimated skill of the team or player.
deviation: f64The uncertainty of the rating value - a standard deviation, in statistical terms.
volatility: f64The degree of expected fluctuation in a rating - this enhancement differentiates Glicko2 to Glicko.
Implementations§
Source§impl Glicko2Rating
impl Glicko2Rating
Sourcepub fn unrated() -> Glicko2Rating
pub fn unrated() -> Glicko2Rating
Constructs a Glicko2Rating using the defaults for a new (unrated) player or team.
Trait Implementations§
Source§impl Clone for Glicko2Rating
impl Clone for Glicko2Rating
Source§fn clone(&self) -> Glicko2Rating
fn clone(&self) -> Glicko2Rating
Returns a duplicate of the value. Read more
1.0.0 · 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 Glicko2Rating
impl Debug for Glicko2Rating
Source§impl Default for Glicko2Rating
impl Default for Glicko2Rating
Source§fn default() -> Glicko2Rating
fn default() -> Glicko2Rating
Returns the “default value” for a type. Read more
Source§impl From<Glicko2Rating> for GlickoRating
impl From<Glicko2Rating> for GlickoRating
Source§fn from(rating: Glicko2Rating) -> GlickoRating
fn from(rating: Glicko2Rating) -> GlickoRating
Converts to this type from the input type.
Source§impl From<GlickoRating> for Glicko2Rating
impl From<GlickoRating> for Glicko2Rating
Source§fn from(rating: GlickoRating) -> Glicko2Rating
fn from(rating: GlickoRating) -> Glicko2Rating
Converts to this type from the input type.
impl Copy for Glicko2Rating
Auto Trait Implementations§
impl Freeze for Glicko2Rating
impl RefUnwindSafe for Glicko2Rating
impl Send for Glicko2Rating
impl Sync for Glicko2Rating
impl Unpin for Glicko2Rating
impl UnwindSafe for Glicko2Rating
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