Giter Site home page Giter Site logo

lucaferranti / fuzzylogic.jl Goto Github PK

View Code? Open in Web Editor NEW
27.0 1.0 2.0 2.63 MB

Julia package for fuzzy inference

Home Page: https://lucaferranti.com/FuzzyLogic.jl/stable

License: MIT License

Julia 100.00%
fuzzy-logic mamdani fuzzy-inference-system julia sugeno fuzzy

fuzzylogic.jl's Introduction

FuzzyLogic.jl

Info Build status Documentation Contributing Citation
version CI Status Stable docs contributing guidelines bibtex
Licese: MIT Coverage Dev docs SciML Code Style paper
downloads pkgeval-img JuliaCon video gitter-chat zenodo

A Julia library for fuzzy logic and applications.

If you use this in your research, please cite it as

@INPROCEEDINGS{ferranti2023fuzzylogicjl,
  author={Ferranti, Luca and Boutellier, Jani},
  booktitle={2023 IEEE International Conference on Fuzzy Systems (FUZZ)}, 
  title={FuzzyLogic.jl: A Flexible Library for Efficient and Productive Fuzzy Inference}, 
  year={2023},
  pages={1-5},
  doi={10.1109/FUZZ52849.2023.10309777}}

Features

Installation

  1. If you haven't already, install Julia. The easiest way is to install Juliaup. This allows to easily manage julia versions.

  2. Open the terminal and start a julia session by simply typing julia

  3. Install the library by typing

using Pkg; Pkg.add("FuzzyLogic")
  1. The package can now be loaded (in the interactive REPL or in a script file) with the command
using FuzzyLogic
  1. That's it, have fun!

Quickstart example

fis = @mamfis function tipper(service, food)::tip
    service := begin
      domain = 0:10
      poor = GaussianMF(0.0, 1.5)
      good = GaussianMF(5.0, 1.5)
      excellent = GaussianMF(10.0, 1.5)
    end

    food := begin
      domain = 0:10
      rancid = TrapezoidalMF(-2, 0, 1, 3)
      delicious = TrapezoidalMF(7, 9, 10, 12)
    end

    tip := begin
      domain = 0:30
      cheap = TriangularMF(0, 5, 10)
      average = TriangularMF(10, 15, 20)
      generous = TriangularMF(20, 25, 30)
    end

    service == poor || food == rancid --> tip == cheap
    service == good --> tip == average
    service == excellent || food == delicious --> tip == generous
end

fis(service=1, food=2)

Documentation

  • STABLE: Documentation of the latest release
  • DEV: Documentation of the version on main

JuliaCon video

Contributing

Contributions are welcome! Here is a small decision tree with useful links.

  • To chat withe the core dev(s), you can use the element chat. This is a good entry point for less structured queries.

  • If you find a bug or want to request a feature, open an issue.

  • There is a discussion section on GitHub. You can use the helpdesk for asking for help on how to use the software or the show and tell to share with the world your work using FuzzyLogic.jl.

  • You are also encouraged to send pull requests (PRs). For small changes, it is ok to open a PR directly. For bigger changes, it is advisable to discuss it in an issue first. Before opening a PR, make sure to check the contributing guidelines.

Copyright

fuzzylogic.jl's People

Contributors

lucaferranti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

fuzzylogic.jl's Issues

initial roadmap

Basic types

  • Mamdami inference system
  • Sugeno inference system #5
  • Type-2 inference systems #18

DSL

  • weighted rules #16
  • vector notation to avoid repetitive patterns #17

Visualizations

  • plotting single variables
  • plotting inference system

parsing

  • parse julia code
  • read matlab .fis files #15
  • fuzzy control language #13
  • fuzzy markup language #20

Code generation

  • generate stand-alone julia code #21
  • generate stand-alone c code

Others

  • fuzzy clustering #11

Documentation

  • mamdami tutorial
  • sugeno tutorial #5
  • type-2 tutorial
  • control systems example
  • image processing application #6
  • API / internals documentation #5
  • contributing guideline polishing

Infra

  • basic CI (run tests deploy docs)
  • literate integration for documentation

include graphs of the membership functions [enhancement]:

Feature description

In the future docs, include graphs of the membership functions, both separately and overlaid in related groups.
(for the separately graphed membership functions, perhaps an alongside copy with a lighter gray curve tracking the derivative of each membership function).

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

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.