|
|
@@ -1,4 +1,4 @@
|
|
|
-use std::cmp::{min};
|
|
|
+use std::cmp::{max, min};
|
|
|
use std::collections::HashMap;
|
|
|
use rust_decimal::{Decimal, MathematicalOps};
|
|
|
use rust_decimal_macros::dec;
|
|
|
@@ -79,6 +79,7 @@ pub fn generate_rank_by_indicator_map(indicator_map: &MutexGuard<HashMap<String,
|
|
|
// 标准差
|
|
|
let standard_deviation = msv_variance.sqrt().unwrap();
|
|
|
let mut coverted_open_base = (msv_abs_max + standard_deviation) / TWO_HUNDRED;
|
|
|
+ coverted_open_base = max(coverted_open_base, Decimal::ZERO);
|
|
|
coverted_open_base.rescale(8);
|
|
|
|
|
|
// ============== epr相关数据的计算 =================
|