Commit 1f4c4e56 authored by wujiang's avatar wujiang

修改离散率

parent f15eaeae
...@@ -1802,13 +1802,12 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator { ...@@ -1802,13 +1802,12 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
List<ESEquipments> dtos = list1.stream().filter(e -> e.getEquipmentNumber().equals(s)).collect(Collectors.toList()); List<ESEquipments> dtos = list1.stream().filter(e -> e.getEquipmentNumber().equals(s)).collect(Collectors.toList());
if (!ValidationUtil.isEmpty(dtos)) { if (!ValidationUtil.isEmpty(dtos)) {
for (ESEquipments esEquipments : indicatorsDtos) { for (ESEquipments esEquipments : indicatorsDtos) {
lsv = lsv + Math.pow(esEquipments.getValueF() - dtos.get(0).getValueF(), 2); lsv = lsv + Math.pow(esEquipments.getValueF() - avageValue, 2);
} }
} }
lsv = Math.sqrt(lsv) / dtos.get(0).getValueF(); lsv= lsv/indicatorsDtos.size();
lsv = Math.sqrt(lsv);
} }
resultMap.put("lsv", String.format(CommonConstans.Twodecimalplaces, lsv)); resultMap.put("lsv", String.format(CommonConstans.Twodecimalplaces, lsv));
resultList.add(resultMap); resultList.add(resultMap);
} }
......
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