Struct bbt::Rating [−][src]
pub struct Rating { /* fields omitted */ }
Rating represents the skill of a player.
Methods
impl Rating
[src]
impl Rating
pub fn new(mu: f64, sigma: f64) -> Rating
[src]
pub fn new(mu: f64, sigma: f64) -> Rating
pub fn mu(&self) -> f64
[src]
pub fn mu(&self) -> f64
Returns the estimated skill of the player.
pub fn sigma(&self) -> f64
[src]
pub fn sigma(&self) -> f64
Returns the variance on the estimate of the player's skill.
Trait Implementations
impl PartialEq for Rating
[src]
impl PartialEq for Rating
fn eq(&self, other: &Rating) -> bool
[src]
fn eq(&self, other: &Rating) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rating) -> bool
[src]
fn ne(&self, other: &Rating) -> bool
This method tests for !=
.
impl Clone for Rating
[src]
impl Clone for Rating
fn clone(&self) -> Rating
[src]
fn clone(&self) -> Rating
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Default for Rating
[src]
impl Default for Rating
fn default() -> Rating
[src]
fn default() -> Rating
Instantiates a Rating with the default values of mu=25.0 and sigma=25.0/3.0
impl PartialOrd for Rating
[src]
impl PartialOrd for Rating
fn partial_cmp(&self, other: &Rating) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Rating) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Display for Rating
[src]
impl Display for Rating
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Debug for Rating
[src]
impl Debug for Rating