//Verhulst
import numpy as np
import math
def predict(data):
x1 = data.cumsum()
z = (x1[:len(x1) - 1] + x1[1:]) / 2.0
B = np.array([-z, z*z])
python实现灰色预测Verhulst模型
最新推荐文章于 2024-07-13 00:34:09 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
//Verhulst
import numpy as np
import math
def predict(data):
x1 = data.cumsum()
z = (x1[:len(x1) - 1] + x1[1:]) / 2.0
B = np.array([-z, z*z])