Commit 5c38a50a authored by hanbing's avatar hanbing

[update] 信号优化,干线评价-干线路口评价排队长度取最大

parent 634ae7d6
......@@ -977,7 +977,7 @@ public class MainlineEvaluateServiceImpl implements MainlineEvaluateService {
// 计算非协调方向指标(排队长度)
double nonCoordValueDouble = (crossDirDataHistPOList.stream()
.mapToDouble(CrossDirDataHistPO::getQueueLength)
.average()
.max()
.orElse(0.0));
int nonCoordValue = (int) Math.round(nonCoordValueDouble);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment