| | |
| | | val con = windLevelCondition |
| | | |
| | | if (n.windSpeed!! in con.windSpeed.first..con.windSpeed.second) { |
| | | println("风速:${n.windSpeed},[${con.windSpeed.first} - ${con.windSpeed.second}]") |
| | | // println("风速:${n.windSpeed},[${con.windSpeed.first} - ${con.windSpeed.second}]") |
| | | val pValue = p.getByFactorType(f)!! |
| | | val nValue = n.getByFactorType(f)!! |
| | | // 计算后一个数据相比于前一个数据的变化率 |
| | | val r = (nValue - pValue) / pValue |
| | | val b1 = r >= con.mutationRate.first && r < con.mutationRate.second |
| | | println("因子:${f.des},幅度:${r},限定:${con.mutationRate.first},${b1}") |
| | | // println("因子:${f.des},幅度:${r},限定:${con.mutationRate.first},${b1}") |
| | | res[f] = b1 |
| | | } else { |
| | | res[f] = false |