摘要: 先贴代码,原理有时间补上。 1 import numpy as np 2 import copy 3 from math import log 4 5 # input data 6 ideal = np.array([5,5,4,4,3,3,2,2,1,1]) 7 relevant_score_li 阅读全文
posted @ 2020-04-24 16:18 守功 阅读(1562) 评论(0) 推荐(0) 编辑
摘要: 这里简单介绍几种数值积分的python实现,具体数学原理后面补上。 1 import math 2 import numpy as np 3 4 three_x = [-0.5773503, 0.5773503] 5 three_A = [1.0000000] 6 7 five_x = [-0.90 阅读全文
posted @ 2020-04-24 14:52 守功 阅读(1535) 评论(0) 推荐(0) 编辑