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
-2
votes
2 answers

'<' not supported between instances of 'numpy.ndarray' and 'str'

im doing a project about temperature and humidify control system. Im using skfuzzy as tool. I met some errors, after i try to edit with my own preference. fanspeed = ctrl.ControlSystemSimulation(fanspeed_ctrl) fanspeed.input['temperature'] =…
Sam
  • 19
  • 5
-2
votes
1 answer

Is it possible to create a fuzzy controller with micropython?

I need to create a fuzzy controller with skfuzzy. Is it possible to use skfuzzy to develop a fuzzy controller with Micropython? https://github.com/scikit-fuzzy/scikit-fuzzy
Miltex
  • 302
  • 1
  • 13
-2
votes
1 answer

How can I deal with Indentation Error: unexpected indent?

I am trying to Write the MSE function from Matlab to Python but I am getting this error: for i in range(len(RuleBase)): ^ IndentationError: unexpected indent This is my python code: def Mse(RuleBase,x1,x2): temp=np.zeros(shape =…
Narges Se
  • 35
  • 7
-2
votes
1 answer

What are the difference between the Traditional Logic and the Fuzzy Logic

Please explain the differences about Traditional and Fuzzy Logics(FLS). It will help understand about those systems to beginners(Like me).
dilansalinda
  • 101
  • 2
  • 12
-2
votes
1 answer

use jfuzzylite in java program

I start the programming with fuzzy system and recently know that I can use jfuzzylite library in my java program. But I don't know how can use it or call their class to use in my code. Infact, I need implement fuzzofication, rule evaluation,…
emily
  • 1
-2
votes
2 answers

"unfortunately fuzzy has stopped" how to use fuzzylite in android

log cat I need to use fuzzylite in my app. For example input is service with poor good and excellent levels. Output is tip with low,medium,high levels . Here is the code. I got " unfortunately fuzzy has stopped error" . I am new to fuzzylite . Help…
luna
  • 41
  • 1
  • 1
  • 5
-2
votes
1 answer

SSIS Fuzzy Grouping to group data to generate Unique group Id Value

Need to assign a unique group Id based on the combination of multiple columns values from same table. Values are sometimes unique. Any form of SQL, SSIS, DQS will work for below request. Tried DQS but does not reach to destination. Table has about…
-2
votes
1 answer

Does someone have the java library for fuzzy description logic reasoner Delorean?

The fuzzy reasoner Delorean was open to the public once, I believe. But now nothing was there (Docs1), no java documentation. What happened? Or it was never an open-source project? I found a link (Docs2) in their new paper "Delorean: a reasoner for…
Peiqin
  • 378
  • 4
  • 12
-3
votes
1 answer

MATLAB code for Hamacher sum

The hamacher sum is : I wrote the following MATLAB code for the above function function f=hamachersum(x,y) f = zeros(numel(x),1); for j=1:numel(x) if x(j)==1 && y(j)==1 f(j,1)=1; else …
sam_rox
  • 739
  • 3
  • 14
  • 29
-4
votes
1 answer

develop a python/pyspark program to display similar kinds of words

[code_image.... it should print similar output in one col ]1> from fuzzywuzzy import fuzz from fuzzywuzzy import process query = "Apple" #set of DATA 25 records choices = ["apil", "apple", "Apille", "aple", "apil", "appple", …
-4
votes
1 answer

Testing Fuzzy Logic

I have a problem to testing my fuzzy logic on Java programming either right or wrong. Do you have any simple source code to test it. May you share to me, please. Kindly need your help. Thank you so much. Best Regards, Deni Y.
-4
votes
1 answer

classify numbers using fuzzy logic in C#

I want to write a small code in c# using Fuzzy Logic framework where user will give input number between 0 to 10 and that numbers needs to be classified as Low, Moderate and High. Low is 0 to 3, Moderate is 3 to 7 and High is between 6 to 10. Using…
praxprog
  • 21
  • 5
-5
votes
1 answer

Attempted to access M(1,2); index out of bounds because numel(M)=1

I found some code in Matlab that is about comparing GA(genetic algorithm) and ANFIS(Adaptive Neuro-Fuzzy Inference System). When I run following code, this error occur : Attempted to access M(1,2); index out of bounds because numel(M)=1. Error…
1 2 3
27
28