| | |
| | | avgPer = calPer(f.main) |
| | | avgRate = calRate(f.main) |
| | | |
| | | val s = dataSummary(exceptionData, f.main) |
| | | val s = dataSummary(dataList, f.main) |
| | | avg = s.first |
| | | min = s.second |
| | | max = s.third |
| | |
| | | var times: Int? = null |
| | | |
| | | var historyDataList = mutableListOf<DataVo>() |
| | | // 异常监测数据 |
| | | // 异常监测数据,包含单此异常中所有发生了异常的数据值(可能不是时间连续的数据) |
| | | var dataList: MutableList<BaseRealTimeData> = mutableListOf() |
| | | var dataVoList: MutableList<DataVo> = mutableListOf() |
| | | |
| | |
| | | |
| | | var total = .0 |
| | | for (i in 0 until list.size - 1) { |
| | | val p = list[i].getByFactorType(factorType)!! |
| | | val n = list[i + 1].getByFactorType(factorType)!! |
| | | val p = list[i].getByFactorType(factorType) ?: .0f |
| | | val n = list[i + 1].getByFactorType(factorType) ?: .0f |
| | | total += (n - p) / p |
| | | } |
| | | return total / (list.size - 1) |
| | |
| | | |
| | | var total = .0 |
| | | for (i in 0 until list.size - 1) { |
| | | val p = list[i].getByFactorType(factorType)!! |
| | | val n = list[i + 1].getByFactorType(factorType)!! |
| | | val p = list[i].getByFactorType(factorType) ?: .0f |
| | | val n = list[i + 1].getByFactorType(factorType) ?: .0f |
| | | total += (n - p) / 4 |
| | | } |
| | | return total / (list.size - 1) |