Skip to main content

rating_to_percent

Function rating_to_percent 

Source
pub fn rating_to_percent(
    rating: f64,
    rating_type: RatingType,
    divisor: f64,
    curves: &ResolvedCurves,
) -> Result<f64, StatsError>
Expand description

Convert a raw rating to effective percent points via the DBC DR curve.

ยงErrors

Returns an error when the required diminishing-returns curve is unavailable.