Python NSE 代码
时间: 2023-11-19 12:49:56 浏览: 227
python 代码
Python中计算NSE的代码如下:
```python
import numpy as np
def calculate_nse(obs, sim):
ave_obs = np.mean(obs)
numerator = np.sum((obs - sim) ** 2)
denominator = np.sum((obs - ave_obs) ** 2)
nse = 1 - numerator / denominator
return nse
```
阅读全文