Git Product home page Git Product logo

adafuzzy's Introduction

Ada Fuzzy

This package provides a library to create fuzzy inference systems in Ada.

For more information on fuzzy inference, see

https://en.wikipedia.org/wiki/Fuzzy_control_system and http://fr.mathworks.com/help/fuzzy/fuzzy-inference-process.html

Compiling

To compile this library, you need to install the GNAT compiler and the GNAT Components Library (gnatcoll) first.

Then type::

make

Demos

Thermostat

See examples/example.adb for a simple demo that shows how to create a fuzzy inference engine programmatically. This demo simulates a thermostat that tries to smoothly maintain the temperature around 20 C, while at period interval we randomly nudge it.

Basically, we give the system rules like:

if temperature is COLD then power is FULL if temperature is MEDIUM then power is MEDIUM if temperature is HOT then power is LOW

then provide a temperature, and let the system compute what the output should be. We need a bit more setup, though, to define what the terms COLD, MEDIUM, HOT, FULL and LOW mean.

Type::

make
./examples/obj/example

to compile and run this demo

Robot

Another demo is provided. The goal is to control a robot so that it reaches its target while avoiding obstacles. The rules are described in an external file examples/robot.fcl, which you can modify before restarting the demo.

This file is written in the Fuzzy Controller Language, for which you can find a description at http://www.fuzzytech.com/binaries/ieccd1.pdf

This demo requires GtkAda on your system.

Type::

 make all robot

to compile and run this demo.

adafuzzy's People

Contributors

briot avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

adafuzzy's Issues

Add to awesome-ada

hi,

In which section of the awesome-ada page would you add this project?

Thx!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.