mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-18 00:08:54 +00:00
Use 100-based accuracy
This commit is contained in:
parent
51db72acb2
commit
8d2344435b
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,8 @@ impl Into<f64> for Accuracy {
|
|||
match self {
|
||||
Accuracy::ByValue(v, _) => v,
|
||||
Accuracy::ByCount(n300, n100, n50, nmiss) => {
|
||||
((6 * n300 + 2 * n100 + n50) as f64) / ((6 * (n300 + n100 + n50 + nmiss)) as f64)
|
||||
100.0 * ((6 * n300 + 2 * n100 + n50) as f64)
|
||||
/ ((6 * (n300 + n100 + n50 + nmiss)) as f64)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue