Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FuzzyLogic in Javascript?

Does anyone know how one could access fuzzy logic from javascript? I have a good fuzzy library in Java and C++, but I wanted something I could run from HTML5/javascript.

like image 912
Androider Avatar asked Jul 30 '11 21:07

Androider


People also ask

What is fuzzy logic with example?

In more simple words, A Fuzzy logic stat can be 0, 1 or in between these numbers i.e. 0.17 or 0.54. For example, In Boolean, we may say glass of hot water ( i.e 1 or High) or glass of cold water i.e. (0 or low), but in Fuzzy logic, We may say glass of warm water (neither hot nor cold).

What is fuzzy search JavaScript?

Fuzzy searching matches the meaning, not necessarily the precise wording or specified phrases. It performs something the same as full-text search against data to see likely misspellings and approximate string matching.

What is the fuzzy logic?

Fuzzy logic is an approach to computing based on "degrees of truth" rather than the usual "true or false" (1 or 0) Boolean logic on which the modern computer is based. The idea of fuzzy logic was first advanced by Lotfi Zadeh of the University of California at Berkeley in the 1960s.

What is the 4 four components of fuzzy logic?

fuzzy inference process usually includes four parts: fuzzification, fuzzy rules base, inference method, and defuzzification, as shown in Figure 1: 1.


2 Answers

There are two projects avaliable:

  1. https://github.com/marcolanaro/JS-Fuzzy - ready to use in browser

  2. https://github.com/sebs/node-fuzzylogic - nodejs module, could be used in browser

like image 153
Igor S. Avatar answered Sep 20 '22 20:09

Igor S.


Options are:

  1. Put the logic on a server and use ajax to access it from a web page.
  2. Rewrite it in javascript and include it in your page.
  3. Put the C++ into a browser plugin and access the plugin from javascript.

Options 1) or 2) could work fine depending upon the details of the situation. Option 3) is generally a bad idea unless it's a very specialized application that somehow makes it worth dealing with the distribution, maintenance, testing and user headaches of a plug-in.

like image 37
jfriend00 Avatar answered Sep 16 '22 20:09

jfriend00