This commit is contained in:
jianxin committed 2023-11-01 13:49:53 +08:00
commit 7177a07538
5 files changed
+159

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import numpy as np
from get_data import get_data
parm_1000 = [-61.4400001, 1402438300.0, 61.4400001]
def reduct(x, parm):
a, b, c = parm
return a * np.exp(-b * x) + c
def check_data(data):
fit_data = reduct(data, parm_1000)
real_data = get_data([data])
print(f"拟合数据: {fit_data}, 实际数据: {real_data}, 误差: {fit_data - real_data}")
check_data(1000)