Questions tagged [fuzzy-logic]

Fuzzy logic is logic handling uncertainty by using as truth values a real number between 0 and 1 to represent less or more certainty about a variable. Fuzzy operators similarly work with degrees of truth.

What is it?

Fuzzy logic is logic handling uncertainty by using as truth values a real number between 0 and 1 to represent less or more certainty about a variable. It is a form of many-valued logic. Fuzzy operators similarly work with degrees of truth.

How does it work?

Fuzzy logic deals with reasoning that is approximate rather than fixed and exact. In contrast with traditional logic theory, where binary sets have two-valued logic: true or false, fuzzy logic variables may have a truth value that ranges in degree between 0 and 1. Fuzzy logic has been extended to handle the concept of partial truth, where the truth value may range between completely true and completely false.

The reasoning in fuzzy logic is similar to human reasoning. It allows for approximate values and inferences as well as incomplete or ambiguous data (fuzzy data) as opposed to only relying on crisp data (binary yes/no choices). Fuzzy logic is able to process incomplete data and provide approximate solutions to problems other methods find difficult to solve.

In traditional logic, an answer is either black or white. Using fuzzy logic, the answer could be white, black or any variation of grey.

Related tags

Useful links

419 questions
3
votes
1 answer

How to map a value to a fuzzy term in python

Following the tip example from scikit-fuzzy, I have used the following code to create an input/output to a fuzzy control system: quality = ctrl.Antecedent(np.arange(0, 11, 1), 'quality') service = ctrl.Antecedent(np.arange(0, 11, 1), 'service') tip…
dada
  • 1,390
  • 2
  • 17
  • 40
3
votes
3 answers

skfuzzy can not be recognized

I made a traffic light prototype from raspi. My source code has given an error. The erorr said Traceback (most recent call last): File "/home/pi/testing.py", line 2, in import skfuzzy as fuzz ImportError: No module named 'skfuzzy' I…
Himawan Sandhi
  • 51
  • 1
  • 2
  • 6
3
votes
0 answers

Identifying Duplicate Customers Based on Similarity (Spark Dataframe)

I have a spark dataframe that contains customer information. Some clients are duplicates but it's hard for the computer to determine that without some form of fuzzy matching like levenstein distance, etc. In the example below, John Smith and Johnny…
Steve
  • 11,831
  • 14
  • 51
  • 63
3
votes
2 answers

Define acronyms when running vb code calculating similarity

I am utilizing the following vb code in excel to calculate the degree similarity between column A and column B. It runs great. The next step for me is to define acronyms so the calculated degree of similarity is not impacted. IE: If I have in…
jonv
  • 53
  • 4
3
votes
1 answer

java.lang.ClassNotFoundException in spring boot when running jar file - Library is added

I'm importing jfuzzylite-5.0.1.jar library to my spring boot project. My library is imported using this way: com.fuzzylite jfuzzylite 5.0.1
thesun93pp
  • 73
  • 1
  • 7
3
votes
1 answer

Compositions in Fuzzy Relations - MATLAB/Python

I want to calculate Fuzzy Relation Compositions on MATLAB/Python and was wondering if there are any built-in functions in MATLAB or Python for doing this... here's an example : R1 = [{ 3, 4, .7}, {3, 5, 0}, { 4, 4, 1}, { 4, 5, .1}] R2 = [{ 3,3, 0},…
Cypher
  • 2,374
  • 4
  • 24
  • 36
3
votes
1 answer

R - frbs package error - incorrect number of dimensions

I'm trying to run frbs package in order to solve a classification problem, taking iris dataset as an example. My dataset (Dataset_match) contains 9 input variables (all numeric), 1 binary output variable and 27 196 observations. I've split the data…
PCruz
  • 31
  • 2
3
votes
2 answers

Fuzzy logic in java

I have been given a new project module which involves fuzzy logic. It is to determine different Hydrometeors using 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…
Emil
  • 13,577
  • 18
  • 69
  • 108
3
votes
1 answer

Is this a correct implementation of a FuSM (Fuzzy State Machine)

I am super confused whether or not this actually counts as beeing a FuSM, because in the end, it is just an if else condition, which many say is not enough for it to be fuzzy logic? I'm am also confused whether or not fuzzy AI and a Fuzzy State…
BjarkeCK
  • 5,694
  • 5
  • 41
  • 59
3
votes
1 answer

Fuzzy Logic in Java: Having troubles implementing the defuzzification process (using the centroid method)

I have implemented a whole fuzzy logic system in Java, but I am having serious issues on the defuzzification process. In my code, I defined my inputs as time and distance, and the output is simply output. I have every linear function that constructs…
theJuls
  • 6,788
  • 14
  • 73
  • 160
3
votes
1 answer

Purpose of range constraints in fuzzy logic

When defining a linguistic variable, it is customary to specify minimum and maximum values. For example, when defining a Temperature variable, someone might specify -40C and +85C as the range of that variable. The members of the fuzzy set (e.g.…
3
votes
5 answers

Fuzzy Scheduling

I'm writing a windows service that needs to execute a task (that connects to a central server) every 30 days +- 5 days (it needs to be random). The service will be running on 2000+ client machines, so the randomness is meant to level them out so the…
Gareth
  • 2,424
  • 5
  • 26
  • 44
3
votes
1 answer

How to apply Combs Method?

I'm studying combs method, for reducing the "combinatorial explosion" of fuzzy logic rules. There's an example, taken from "Programming Game AI from example" (written by Mat Buckland) : The theory behind the Combs method works on the principle that…
Andrea Tucci
  • 187
  • 2
  • 8
2
votes
2 answers

Fuzzy matching and grouping

I am trying to do fuzzy match and grouping using Python on multiple fields. I want to do the comparison on each column on a different fuzzy threshold. I tried to search on google but could not find any solution which can do deduplication and then…
sadashiv
  • 43
  • 6
2
votes
1 answer

Oracle Fuzzy Search with spaces

I want to do fuzzy search in Oracle but query is not working with spaces. ex. Let say we have a table po_test_tmp which has many records If we execute this query it works fine select score(1), ae.po_number from po_test_tmp ae where…