Skip to main content

Python Fuzzy Logic library

Project description

fuzzylab

Python Fuzzy Logic library based on Octave fuzzy-logic-toolkit

The way to use the fuzzylab functions is based on Matlab R2018b Fuzzy Logic Toolbox functions.

Install

pip install -U fuzzylab

Use

In the folder notebooks exists notebook examples, for a starting point to the library.

In all the notebooks it is initialized installing the fuzzylab library with

!pip install -U fuzzylab

that use ! for execute terminal commands in the cell.

For plot in the notebook with the matplotlib library it is necessary to specify it with

%matplotlib inline

Now you can import the fuzzy library with

from fuzzylab import *

Example

import numpy as np
from matplotlib.pyplot import *
from fuzzylab import *

x = np.linspace(0, 10, 101)
y = trimf(x, [3, 6, 8])
plot(x, y)
xlabel('trimf, P = [3, 6, 8]')
show()

trimf

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fuzzylab-0.0.10.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

fuzzylab-0.0.10-py3-none-any.whl (22.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page