From 7f7229c59b54c31a82bbff1792cbce5fa967f7ff Mon Sep 17 00:00:00 2001 From: Phelipe Wesley Date: Sat, 27 Nov 2021 11:31:27 -0300 Subject: [PATCH] add chart_prepare in readme --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9bf2aba..1233d39 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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