Skip to content

Commit

Permalink
add chart_prepare in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
phelipe committed Nov 27, 2021
1 parent c601c28 commit 7f7229c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Fuzzy

=============

Mamdani and Sugeno type Fuzzy Inference System in julia. This code is based in [Lepisma](https://github.com/lepisma/Fuzzy.jl).


[![CI](https://github.com/phelipe/Fuzzy.jl/actions/workflows/ci.yml/badge.svg)](https://github.com/phelipe/Fuzzy.jl/actions/workflows/ci.yml)


## Install

```julia
Expand Down Expand Up @@ -114,6 +113,18 @@ julia> eval_fis(fis, in_vals)
- Einstein sum (E-SUM)
- Hamacher sum (H-SUM)

## Prepare to plot your Fuzzy sets

- Create points to use in plot packages using the chart_prepare

```julia
julia> input_a = Dict("small" => TriangularMF(1, 2, 3), "large" => TriangularMF(5, 6, 7));
julia> x = range(0, 8, length = 100);
julia> data = chart_prepare(ipa, x)
julia> using Plots
julia> plot(x, data["values"], label = data["names"])
```

## License

MIT

0 comments on commit 7f7229c

Please sign in to comment.