java java中的模糊逻辑

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3491283/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 02:03:54  来源:igfitidea点击:

Fuzzy logic in java

javafuzzy-logic

提问by Emil

I have been given a new project module which involves fuzzy logic. It is to determine different Hydrometeorsusing fuzzy logic method.I have very little idea about what fuzzy logic is. So I would like to have some advice from people who have already done projects using fuzzy logic in Java (like what are the basic programming strategies I can adopt).

我得到了一个涉及模糊逻辑的新项目模块。它是使用模糊逻辑方法确定不同的水凝物。我对模糊逻辑是什么知之甚少。所以我想从已经使用Java中使用模糊逻辑完成项目的人那里获得一些建议(例如我可以采用的基本编程策略是什么)。

I have come across a fuzzy logc API. People who have used it please comment on how useful it is.

我遇到了一个模糊的 logc API。用过的人请评论一下它的用处。

回答by Michael Borgwardt

Fuzzy logicis an abstract concept that is completely independant of programming lanuages. The basic idea is that instead of boolean logic where any statement is either "true" or "false", you use a continuum where a statement can be anywhere between "100% true" and "0% true". This allows you to model some real-world scenarios much better than boolean logic, but of course requires different (more complex) rules for combining statements.

模糊逻辑是一个完全独立于编程语言的抽象概念。基本思想是,不是任何语句为“真”或“假”的布尔逻辑,而是使用连续统,其中语句可以在“100%真”和“0%真”之间的任何位置。这使您可以比布尔逻辑更好地模拟一些现实世界的场景,但当然需要不同(更复杂)的规则来组合语句。

I have not used the API library you linked to, but it looks pretty well-maintained at first glance (it has been updated regularly, there is a recent release, and even an eclipse plugin).

我没有使用您链接的 API 库,但乍一看它看起来维护得很好(它已经定期更新,有一个最近的版本,甚至还有一个 eclipse 插件)。

回答by mob

We developed a fuzzy logic matching algorithm in Java to find similarity in Strings.

我们在 Java 中开发了一种模糊逻辑匹配算法来查找字符串中的相似性。

https://github.com/intuit/fuzzy-matcher

https://github.com/intuit/fuzzy-matcher

In real life cases where a binary result is not enough and want to find similar matches, Fuzzy logic is widely useful.

在二进制结果不够并且想要找到相似匹配的现实生活中,模糊逻辑非常有用。

For example if you have a set of names like

例如,如果您有一组名称,例如

["John Doe","Hyman Miller","Jon Doe","J Doe","Miller J"]

["John Doe","Hyman Miller","Jon Doe","J Doe","Miller J"]

And want to group similar names together and find a probability on how similar they are

并希望将相似的名称组合在一起并找出它们相似程度的概率

So running the library will group ["John Doe","Jon Doe","J Doe"]together and group ["Hyman Miller","Miller J"]together

所以运行库将组["John Doe","Jon Doe","J Doe"]一起,组["Hyman Miller","Miller J"]在一起

The GitHub page is well documented and see if that helps in understanding how fuzzy logic works.

GitHub 页面有详细记录,看看这是否有助于理解模糊逻辑的工作原理。