| | |
| | | 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 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) |