问题标签 [fuzzy-logic]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
matlab - 如何在 MATLAB 中生成 ANFIS 输出?
我在工作中使用 ANFIS,并学习了使用MATLAB使用ANFIS 。但是,我在图表中得到了最终的 FIS 输出。我无法以数组形式获得输出。
您能帮我了解如何以数组形式获得最终输出吗?
c# - C#模糊逻辑教程
嘿,有人可以建议我可以在 C# 中学习模糊逻辑教程的最佳论坛或网站在哪里。我想了解道路检测、边缘检测和图像处理
excel - 是否可以在 Excel 中进行 Levenshtein 距离而不必求助于宏?
让我解释。
我要为一家公司做一些模糊匹配,所以 ATM 我用了一个 levenshtein 距离计算器,然后计算两个词的相似度百分比。如果术语的相似度超过 80%,则 Fuzzymatch 返回“TRUE”。
我的问题是我在实习,马上就要离开了。将继续这样做的人不知道如何将 excel 与宏一起使用,并希望我尽我所能实现我所做的。
所以我的问题是:无论函数效率如何,是否有任何方法可以在 Excel 中创建一个标准函数来计算我之前所做的,而不使用宏?
谢谢。
php - 在php中查找两个字符串之间的匹配百分比?
谁能建议我一个更好的方法(或最首选的方法)来使用模糊逻辑找到两个字符串之间的匹配百分比(即这两个字符串(例如名称)在百分比方面的相关程度)。?谁能帮我写代码?真的我想知道从哪里开始..
artificial-intelligence - 如何应用梳子方法?
我正在研究梳子方法,以减少模糊逻辑规则的“组合爆炸”。有一个例子,取自“Programming Game AI from example”(由 Mat Buckland 编写):
Combs 方法背后的理论基于以下规则:
如果 Target_Far 和 Ammo_Loads THEN 是可取的
逻辑上等价于: IF Target_Far THEN Desirable OR IF Ammo_Loads THEN Desirable
使用此原则,可以定义一个规则库,其中每个后续成员集仅包含一个规则。例如,之前给出的火箭发射器可取性的九个规则:
规则 1. IF Target_Far AND Ammo_Loads THEN Desirable
规则 2. IF Target_Far AND Ammo_Okay THEN Undesirable
规则 3. IF Target_Far AND Ammo_Low THEN Undesirable
规则 4. 如果 Target_Medium AND Ammo_Loads THEN VeryDesirable
规则 5. 如果 Target_Medium AND Ammo_Okay THEN VeryDesirable
规则 6. IF Target_Medium AND Ammo_Low THEN Desirable
规则 7. 如果 Target_Close AND Ammo_Loads THEN Undesirable
规则 8. IF Target_Close AND Ammo_Okay THEN Undesirable
规则 9. IF Target_Close AND Ammo_Low THEN Undesirable
可以简化为六个规则:
规则 1. IF Target_Close THEN Undesirable
规则 2. IF Target_Medium THEN VeryDesirable
规则 3. IF Target_Far THEN Undesirable
规则 4. IF Ammo_Low THEN Undesirable
规则 5. IF Ammo_Okay THEN Desirable
规则 6. IF Ammo_Loads THEN VeryDesirable
我不明白他是如何减少这些规则的!我将每个起始规则分成两部分(应用开头 A 和 B => C 中所写的原则相当于 A => C OR B => C)。现在是否有一个模式可以遵循,或者最后的 6 条规则独立于开始的 9 条规则?
math - 如何通过模糊最大值实现模糊最小值功能
我知道我可以通过幂函数表示模糊最大值(我在神经网络中需要它),即
def max(p:Double)(a:Double,b:Double) = pow(pow(a,p) + pow(b,p) , 1/p) // 假设 a >=0 且 b >=0
当 p -> 无穷大时它变为最大值,当 p = 1 时为和
不确定如何正确实现模糊最小值。
java - 评估 fcl 文件的异常
我在 java 中使用jFuzzyLogic 库。
我正在使用的 Fcl 文件是:
我正在使用的java代码片段是:
这是我得到的例外:
我做错了什么?异常对我来说不是很清楚,也许 CenterOfGravity Defuzzifier 不能与单例一起使用?
java - Java的ANFIS库?
是否有可用于 Java 的即用型自适应神经模糊推理系统 (ANFIS) 库?
c++ - Strange method behaviour for second run
I am writing an Arduino program that use a fuzzy logic to control the car, but I have problems with the C++, as the program behaves really strange. The first run gets me RIGHT results, but next runs shifts outputs in the array really strange way.
EDIT: I found out, that the problem is related to the number of FSets stored in the TermSet. If I put into TermSet more than 5 FSets, IT gives WRONG results only in the 3rd, 4th and 5th iteration. Other iterations gives RIGHT results.
My execution code is:
This outputs something like this for 3 runs:
// cntZ for WHOLE UOD - every run are correct - omitted from output in next runs
-6.00/-6.00 - 0.00
-5.00/-5.00 - 0.00
-4.00/-4.00 - 0.00
-3.00/-3.00 - 0.25
-2.00/-2.00 - 0.50
-1.00/-1.00 - 0.75
0.00/0.00 - 1.00
1.00/1.00 - 0.75
2.00/2.00 - 0.50
3.00/3.00 - 0.25
4.00/4.00 - 0.00
5.00/5.00 - 0.00
6.00/6.00 - 0.00
The classes code is:
I expect that the problem is in the FRule->ruleOutput(double x1,double x2)
method, but I might be wrong. Also I think it must be some sort of memory problem, as I am new to C++ and not quite comfortable with the whole memory management.
fuzzy-logic - ffll 免费模糊逻辑库的资源
下面推荐哪个模糊逻辑库?
我也选择使用这个库,ffll。然而,这个库的社区似乎不存在或者使用这个库的程序员太少,而且很难获得简单的支持。
例如,要编写 FCL 语言来定义(.fcl)模糊模型,必须购买语言参考。现在,我只想编写一个具有两个输出的模型,但不知道如何(旧的参考指南无法编译)。甚至在该 .fcl 文件中定义一些常量
我用谷歌搜索但失败了。
任何人的经验和评论对我都有很大的帮助!谢谢