1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| package com.flightfeather.uav.model.epw
|
| import com.flightfeather.uav.model.BaseWeight
|
| /**
| * 风速距离权重
| * 监测点与污染源之间的物理距离与当前风速得出的权重
| */
| class WindDisWeight : BaseWeight() {
|
| override val sectionValues: List<Double> = listOf(2.0, 5.0, 8.0, 12.0, 20.0, 30.0)
| override val weights: List<Double> = listOf(1.0, 0.8, 0.6, 0.5, 0.3, 0.0)
|
| fun getWeight(dis: Double, ws: Double): Double {
| val value = dis / ws / 60
| return weightCal(value)
| }
| }
|
|