Browse Source

使用方差标定基准值2。

skyffire 1 năm trước cách đây
mục cha
commit
a7ba8426a2
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/rank.rs

+ 2 - 2
src/rank.rs

@@ -27,7 +27,7 @@ pub struct Rank {
 
 const TWENTY: Decimal = dec!(20);
 const SIXTY: Decimal = dec!(60);
-// const TWO_HUNDRED: Decimal = dec!(200);
+const TWO_HUNDRED: Decimal = dec!(200);
 // const TEN_THOUSAND: Decimal = dec!(10000);
 
 // 根据最终的msv计算排行榜
@@ -76,7 +76,7 @@ pub fn generate_rank_by_indicator_map(indicator_map: &MutexGuard<HashMap<String,
 
             total / effective_count
         };
-        let mut coverted_open_base = (msv_abs_max - msv_variance) / Decimal::ONE_HUNDRED;
+        let mut coverted_open_base = (msv_abs_max + msv_variance) / TWO_HUNDRED;
         coverted_open_base.rescale(8);
 
         // ============== epr相关数据的计算 =================