Эх сурвалжийг харах

分数计算公式调整14。

skyffire 1 жил өмнө
parent
commit
d46fccf797
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      src/rank.rs

+ 2 - 2
src/rank.rs

@@ -81,7 +81,7 @@ pub fn generate_rank_by_indicator_map(indicator_map: &MutexGuard<HashMap<String,
 
         // msv_score计算规则
         let mut msv_score = if msv_abs_total > Decimal::ZERO && epr_total > Decimal::ZERO {
-            (Decimal::ONE + epr_total / msv_abs_total).ln() * SIXTY
+            (msv_abs_avg * epr_total / msv_abs_total) * SIXTY
         } else {
             Decimal::ZERO
         };
@@ -98,7 +98,7 @@ pub fn generate_rank_by_indicator_map(indicator_map: &MutexGuard<HashMap<String,
 
         // frequency_score计算规则
         let mut frequency_score = if effective_count > Decimal::ZERO {
-            (Decimal::ONE + effective_count).ln() * TWENTY
+            (Decimal::ONE + effective_count).ln()
         } else {
             Decimal::ZERO
         };