Skip to main content

correctness_coefficient

Function correctness_coefficient 

Source
fn correctness_coefficient(score_given: f32, score_maximum: i32) -> f32
Expand description

The share of a task’s points a grading result earns, in 0.0..=1.0.

A result with no positive maximum earns nothing, since the tmc service reports a failed grading as 0 of 0 points.