当前位置: 首页 > news >正文

网站运营条件网络营销的主要推广方式

网站运营条件,网络营销的主要推广方式,新浪博客怎么给自己网站做链接吗,制作网页网站用的是什么参考资料#xff1a;https: // blog.csdn.net / shelgi / article / details / 126908418 ————通过下面这个例子#xff0c;终于能理解一点模糊理论的应用了#xff0c;感谢原作。 熟悉简单的skfuzzy构建接近生活事件的模糊控制器 假设下面这样的场景, 我们希望构建一套…参考资料https: // blog.csdn.net / shelgi / article / details / 126908418 ————通过下面这个例子终于能理解一点模糊理论的应用了感谢原作。 熟悉简单的skfuzzy构建接近生活事件的模糊控制器 假设下面这样的场景, 我们希望构建一套模糊控制系统, 通过室外温度和风的大小来判断穿几件衣服 室外温度的范围设置为0 - 40度, 虽然今年夏天超过40度在我们这边很平常, 但是我们这里还是以40度为最高界限 风的大小范围0 - 10, 这里不是风的级数, 而是我自己构建的大小.模糊理论奥妙就在于不需要精确的逻辑值, 可以模糊描述.比如小风我设置为1 - 3, 然后有点大的风等等, 都是比较抽象的描述, 但是经过隶属函数可以看出, 往往某个值是在多个状态叠加. 衣服的件数我设置为1 - 6(不能一件衣服不穿), 如果按照本人自己的爱好, 我最多也只穿三件.不过考虑到实际还是设一个大点的范围常见模糊隶属度函数 import matplotlib.pyplot as plt import numpy as np import skfuzzy as fuzz from skfuzzy import control as ctrl import matplotlib.pyplot as pltscikit-fuzzy模块它可以实现模糊控制系统1.选择输入输出模糊集2.定义输入输出隶属度函数不同的隶属度函数会导致不同的控制特性3.建立模糊控制表4.建立模糊控制规则5.模糊推理6.反模糊化7.输出结果绘制结果3D图方式一 调用库函数 if 0:temp ctrl.Antecedent(np.arange(0, 41, 1), temp)wind ctrl.Antecedent(np.arange(0, 11, 1), wind)clothes ctrl.Consequent(np.arange(1, 7, 1), clothes)# 自动找成员函数,分为三类temp.automf(3)wind.automf(3)# 设置目标的模糊规则clothes[low] fuzz.trimf(clothes.universe, [1, 1, 3])clothes[medium] fuzz.trimf(clothes.universe, [1, 3, 6])clothes[high] fuzz.trimf(clothes.universe, [3, 6, 6])rule1 ctrl.Rule(temp[good] | wind[poor], clothes[low])rule2 ctrl.Rule(temp[average], clothes[medium])rule3 ctrl.Rule(temp[poor] | wind[good], clothes[high])rule1.view()rule2.view()rule3.view()# 创建控制系统,应用编写好的规则cloth_ctrl ctrl.ControlSystem([rule1, rule2, rule3])# 创建控制仿真器cloth_num ctrl.ControlSystemSimulation(cloth_ctrl)# 输入测试数据cloth_num.input[temp] 20cloth_num.input[wind] 2# 设置去模糊方法clothes.defuzzify_method mom# 计算结果cloth_num.compute()cloth_num_res cloth_num.output[clothes]print(fThe result of clothes: {cloth_num_res})# 可视化clothes.view(simcloth_num)plt.show()else: 方式二 手动实现模糊规则 plt.rcParams[font.family] simheix_temp np.arange(0, 41, 1)x_wind np.arange(0, 11, 1)x_clothes np.arange(1, 7, 1)# 将三角隶属度函数对各个量进行隶属度映射temp_cold fuzz.trimf(x_temp, [0, 0, 15])temp_warm fuzz.trimf(x_temp, [5, 25, 35])temp_hot fuzz.trimf(x_temp, [25, 40, 40])plt.figure()plt.title(Temperature)plt.plot(x_temp, temp_cold, b, labelcold)plt.plot(x_temp, temp_warm, y, labelwarm)plt.plot(x_temp, temp_hot, r, labelhot)plt.legend()# plt.show()wind_low fuzz.trimf(x_wind, [0, 0, 5])wind_medium fuzz.trimf(x_wind, [0, 5, 10])wind_high fuzz.trimf(x_wind, [5, 10, 10])plt.figure()plt.title(Wind)plt.plot(x_wind, wind_low, b, labellow)plt.plot(x_wind, wind_medium, y, labelmedium)plt.plot(x_wind, wind_high, r, labelhigh)plt.legend()# plt.show()cloth_low fuzz.trimf(x_clothes, [1, 1, 3])cloth_medium fuzz.trimf(x_clothes, [1, 3, 6])cloth_high fuzz.trimf(x_clothes, [3, 6, 6])plt.figure()plt.title(clothes)plt.plot(x_clothes, cloth_low, b, labellow)plt.plot(x_clothes, cloth_medium, y, labelmedium)plt.plot(x_clothes, cloth_high, r, labelhigh)plt.legend()# plt.show()temp_test 30wind_test 5temp_level_cold fuzz.interp_membership(x_temp, temp_cold, temp_test)temp_level_warm fuzz.interp_membership(x_temp, temp_warm, temp_test)temp_level_hot fuzz.interp_membership(x_temp, temp_hot, temp_test)wind_level_low fuzz.interp_membership(x_wind, wind_low, wind_test)wind_level_medium fuzz.interp_membership(x_wind, wind_medium, wind_test)wind_level_high fuzz.interp_membership(x_wind, wind_high, wind_test)# 模糊规则# 当风小或者温度高的时候我们穿很少的衣服# 当温度中等, 比较温暖的时候我们穿得稍微多点# 当温度很低或者风很大的时候, 那我们就需要穿很多衣服了rule1 np.fmax(temp_level_hot, wind_level_low)cloth_res_low np.fmin(rule1, cloth_low)cloth_res_medium np.fmin(temp_level_warm, cloth_medium)rule2 np.fmax(temp_level_cold, wind_level_high)cloth_res_high np.fmin(rule2, cloth_high)clothes np.zeros_like(x_clothes)# visplt.figure(figsize(8, 3))plt.title(结果)plt.plot(x_clothes, cloth_low, b)plt.fill_between(x_clothes, 0, cloth_res_low)plt.plot(x_clothes, cloth_medium, g)plt.fill_between(x_clothes, 0, cloth_res_medium)plt.plot(x_clothes, cloth_high, r)plt.fill_between(x_clothes, 0, cloth_res_high)# plt.show()# 去模糊aggregated np.fmax(cloth_res_low, np.fmax(cloth_res_medium, cloth_res_high))# 去模糊方法:# 反模糊化方法有很多# centroid面积重心法# bisector面积等分法# mom最大隶属度平均法# som最大隶属度取最小法# lom最大隶属度取最大法cloth fuzz.defuzz(x_clothes, aggregated, mom)cloth_res fuzz.interp_membership(x_clothes, aggregated, cloth)plt.figure(figsize(8, 3))plt.title(f去模糊化结果cloth:{cloth})plt.plot(x_clothes, cloth_low, b)plt.plot(x_clothes, cloth_medium, g)plt.plot(x_clothes, cloth_high, r)plt.fill_between(x_clothes, 0, aggregated, facecolororange)plt.plot([cloth, cloth], [0, cloth_res], k)plt.show() 测试温度temp_test 30测试风速wind_test 5 测试温度temp_test 10测试风速wind_test 8 测试温度temp_test 40测试风速wind_test 2
http://www.w-s-a.com/news/863001/

相关文章:

  • 网站整体营销方案网站建设百度贴吧
  • 宣传式网站养生网站模板
  • 临猗网站建设天津做网站哪家服务好
  • 郑州做网站九零后用织梦建设网站的步骤
  • 莱芜网站优化加徽信xiala5江都网站制作
  • 网站开发工具书焦作网站开发公司电话
  • 石狮网站建设报价百度爱采购怎么优化排名
  • 广州网站开发系统如何建设百度网站
  • 免费建立一个个人网站网站流量图怎么做
  • 微信网站建设公司首选网站后台更新 前台不显示
  • 撰写网站专题活动策划方案未成年做网站
  • 免费在线响应式网站自助建站网页设计与网站建设试卷
  • 四川省肿瘤医院搜索优化整站优化
  • 新钥匙建站深圳创业补贴政策2023
  • 建网站需要准备什么网站三个月没排名
  • 网站运营规划网站推广的手段
  • cvm可以做网站服务器吗网片围栏
  • 培训前端网站开发网站开发 群
  • 成都武侯区网站建设wordpress菜单分类目录
  • 牡丹江市西安区建设局网站给公司做的东西放到自己网站上
  • 做网站的前景如何郑州seo规则
  • 学校户网站建设方案专业设计服务
  • 电子商务网站建设好么有一个网站怎么做cpc
  • 镇海住房和建设交通局网站跨境电商就是忽悠人的
  • 维修网站怎么做跨境电商发展现状如何
  • 手机网站设计公司皆选亿企邦桐乡市建设局官方网站
  • 企业培训 电子商务网站建设 图片山东省住房和城乡建设厅网站主页
  • 做酒招代理的网站赣icp南昌网站建设
  • 怎样做网站內链大连市建设工程信息网官网
  • 网站软件免费下载安装泰安网站建设收费标准