摘要: 簇数的确定: 要用到k-means里面的轮廓系数 基于python的数学建模 轮廓系数的确定 - 坤丶 - 博客园 (cnblogs.com) 模糊c的代码 import copy import math import random import time global MAX # 用于初始化隶属度 阅读全文
posted @ 2022-08-10 17:55 故y 阅读(446) 评论(0) 推荐(1)
摘要: 权重 ak的确定——频数统计法 选取正整数p的方法 画箱形图 取1/4与3/4的距离(IQR) ceil()取整 代码: import numpy as np def frequency(matrix,p): ''' 频数统计法确定权重 :param matrix: 因素矩阵 :param p: 分 阅读全文
posted @ 2022-08-08 21:48 故y 阅读(324) 评论(0) 推荐(0)
摘要: 一、递推关系——酵母菌生长模型 代码: import matplotlib.pyplot as plt time = [i for i in range(0,19)] number = [9.6,18.3,29,47.2,71.1,119.1,174.6,257.3, 350.7,441.0,513 阅读全文
posted @ 2022-08-08 17:20 故y 阅读(818) 评论(0) 推荐(0)
摘要: import numpy as np inf = 99999 # 不连通值 mtx_graph = [[0, 1, inf, 3, inf, inf, inf, inf, inf], [1, 0, 5, inf, 2, inf, inf, inf, inf], [inf, inf, 0, 1, in 阅读全文
posted @ 2022-07-31 22:59 故y 阅读(202) 评论(0) 推荐(0)
摘要: from collections import defaultdict from heapq import * # 堆--先进后出 inf = 99999 # 不连通值 mtx_graph = [[0, 1, inf, 3, inf, inf, inf, inf, inf], [1, 0, 5, i 阅读全文
posted @ 2022-07-31 16:43 故y 阅读(185) 评论(0) 推荐(0)
摘要: 六个模型的区别 SI-Model import scipy.integrate as spi import numpy as np import matplotlib.pyplot as plt # N为人群总数 N = 10000 # β为传染率系数 beta = 0.25 # gamma为恢复率 阅读全文
posted @ 2022-07-31 16:37 故y 阅读(735) 评论(0) 推荐(0)
摘要: import numpy as np from scipy.integrate import odeint from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt def dmove(Point, t, sets 阅读全文
posted @ 2022-07-31 10:01 故y 阅读(216) 评论(0) 推荐(0)
摘要: import numpy as np from scipy import integrate import matplotlib.pyplot as plt import sympy def plot_direction_field(x, y_x, f_xy, x_lim=(-5, 5), y_li 阅读全文
posted @ 2022-07-31 09:57 故y 阅读(236) 评论(0) 推荐(0)
摘要: import numpy as np import matplotlib.pyplot as plt from scipy.optimize import leastsq from matplotlib.pylab import mpl mpl.rcParams['font.sans-serif'] 阅读全文
posted @ 2022-07-27 10:07 故y 阅读(177) 评论(0) 推荐(0)
摘要: import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib as mpl from scipy import interpolate import matplotlib.cm as cm import ma 阅读全文
posted @ 2022-07-27 10:05 故y 阅读(587) 评论(0) 推荐(0)