|
|
@@ -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
|
|
|
+ ((Decimal::ONE + epr_total / msv_abs_total) * SIXTY).ln()
|
|
|
} else {
|
|
|
Decimal::ZERO
|
|
|
};
|
|
|
@@ -89,7 +89,7 @@ pub fn generate_rank_by_indicator_map(indicator_map: &MutexGuard<HashMap<String,
|
|
|
|
|
|
// liquidity_score
|
|
|
let mut liquidity_score = if liquidity_avg > Decimal::ZERO {
|
|
|
- (Decimal::ONE + liquidity_avg / Decimal::ONE_THOUSAND).ln() * TWENTY
|
|
|
+ ((Decimal::ONE + liquidity_avg / Decimal::ONE_THOUSAND) * TWENTY).ln()
|
|
|
} else {
|
|
|
Decimal::ZERO
|
|
|
};
|
|
|
@@ -97,7 +97,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) * TWENTY).ln()
|
|
|
} else {
|
|
|
Decimal::ZERO
|
|
|
};
|