fuzzylab
Python Fuzzy Logic library based on Octave Fuzzy Logic Toolkit 0.4.6, considered as a mostly MATLAB-compatible fuzzy logic toolkit for Octave.
The way to use the fuzzylab functions is based on Matlab R2022a Fuzzy Logic Toolbox functions.
This library is more mature compared to the first version and will receive periodic updates.
Research work
Installation
pip install fuzzylab
Usage
In the folder examples there are some code snippets and the equivalent matlab code for a starting point using the library.
We use fl as the alias for fuzzylab.
import fuzzylab as fl
Example
import fuzzylab as fl
import matplotlib.pyplot as plt
x = fl.arange(0, 0.1, 10)
y = fl.trimf(x, [3, 6, 8])
plt.plot(x,y)
plt.title('trimf, P = [3, 6, 8]')
plt.xlabel('x')
plt.ylabel('Degree of Membership')
plt.ylim([-0.05, 1.05])
plt.show()
Also we can use a more matlab code style
from fuzzylab import arange, trimf
from matplotlib.pyplot import plot, title, xlabel, ylabel, ylim, show
x = arange(0, 0.1, 10)
y = trimf(x, [3, 6, 8])
plot(x,y)
title('trimf, P = [3, 6, 8]')
xlabel('x')
ylabel('Degree of Membership')
ylim([-0.05, 1.05])
show()
Citing fuzzylab
@Inbook{Avelar2020,
author="Avelar, Eduardo
and Castillo, Oscar
and Soria, Jos{\'e}",
editor="Castillo, Oscar
and Melin, Patricia
and Kacprzyk, Janusz",
title="Fuzzy Logic Controller with Fuzzylab Python Library and the Robot Operating System for Autonomous Robot Navigation: A Practical Approach",
bookTitle="Intuitionistic and Type-2 Fuzzy Logic Enhancements in Neural and Optimization Algorithms: Theory and Applications",
year="2020",
publisher="Springer International Publishing",
address="Cham",
pages="355--369",
isbn="978-3-030-35445-9",
doi="10.1007/978-3-030-35445-9_27",
url="https://doi.org/10.1007/978-3-030-35445-9_27"
}
Metadata
Release files for fuzzylab 0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fuzzylab-0.13.tar.gz | 25.1 kB | Without provenance | Details for fuzzylab-0.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fuzzylab-0.13-py3-none-any.whl | Python 3 | none | any | Details for fuzzylab-0.13-py3-none-any.whl |
Total release size: 53.6 kB
Release files / fuzzylab-0.13.tar.gz
| Download URL | fuzzylab-0.13.tar.gz |
|---|---|
| Size | 25.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6f3759c294291de3a2cc7ced0ac5740a799282cb520bb137e649795ed0f8803
|
|
BLAKE2b-256 checksum How to use checksums |
630c1081907916eb8f7e2140a53a8da013ef2e40b58f62262000affdf534f123
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / fuzzylab-0.13-py3-none-any.whl
| Download URL | fuzzylab-0.13-py3-none-any.whl |
|---|---|
| Size | 28.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d1f2e093136ce55a954661abcb1dab210f296d0ff0025ba3486816b304f1cc7
|
|
BLAKE2b-256 checksum How to use checksums |
ec8780126167443882537d98f5361fbcf53803baeca330a9ffddc2b0febaf416
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for fuzzylab 0.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.