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()
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.11.tar.gz
(7.1 kB
view hashes)
Built Distribution
fuzzylab-0.0.11-py3-none-any.whl
(22.7 kB
view hashes)
Close
Hashes for fuzzylab-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a3f9baff519b3f734570e327d7facb77fd0a8bb5e044098e9f2a4fd85ebc586 |
|
MD5 | 9da2c3c6a90cc9a7cb57aee7e89823d2 |
|
BLAKE2b-256 | 6e07f92fc47fd676fed9a92d22d44342563549cfded5aaac1c8e86bec053eb03 |