0% found this document useful (0 votes)
14 views22 pages

simpful documentation

Simpful is a user-friendly Python library designed for fuzzy logic reasoning, offering a lightweight API that resembles natural language. It includes various classes and methods for creating fuzzy systems, linguistic variables, and performing fuzzy inference. The library can be installed via pip and provides detailed documentation and examples on its GitHub repository.

Uploaded by

abeltherealfm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views22 pages

simpful documentation

Simpful is a user-friendly Python library designed for fuzzy logic reasoning, offering a lightweight API that resembles natural language. It includes various classes and methods for creating fuzzy systems, linguistic variables, and performing fuzzy inference. The library can be installed via pip and provides detailed documentation and examples on its GitHub repository.

Uploaded by

abeltherealfm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Simpful

M.S. Nobile, S. Spolaor

Nov 20, 2023


CONTENTS

1 A user-friendly Python library for fuzzy logic 1

Python Module Index 15

Index 17

i
ii
CHAPTER

ONE

A USER-FRIENDLY PYTHON LIBRARY FOR FUZZY LOGIC

Simpful is a Python library for fuzzy logic reasoning, designed to provide a simple and lightweight API, as close as
possible to natural language. This page presents detailed documentation on the classes and methods implemented in
it.

1.1 Installation

You can install Simpful with

pip install simpful

1.2 Additional information

If you want to check out some examples or need more information on the usage of the library, please visit our GitHub
repository, or check our published article here.

1.2.1 simpful module

simpful.simpful module

class simpful.simpful.AutoTriangle(n_sets=3, terms=None, universe_of_discourse=[0, 1],


verbose=False)
Bases: simpful.simpful.LinguisticVariable
Creates a new linguistic variable, whose universe of discourse is automatically divided in a given number of
fuzzy sets. The sets are all symmetrical, normalized, and for each element of the universe their memberships
sum up to 1.
Parameters
• n_sets – (integer) number of fuzzy sets in which the universe of discourse must be divided.
• terms – list of strings containing linguistic terms for the fuzzy sets (must be appropriate to
the number of fuzzy sets).
• universe_of_discourse – a list of two elements, specifying min and max of the
universe of discourse.
• verbose – True/False, toggles verbose mode.

1
Simpful

class simpful.simpful.FuzzySystem(operators=None, show_banner=True, sani-


tize_input=False, verbose=True)
Bases: object
Creates a new fuzzy system.
Parameters
• operators – a list of strings, specifying fuzzy operators to be used instead of defaults.
Currently supported operators: ‘AND_PRODUCT’.
• show_banner – True/False, toggles display of banner.
• sanitize_input – sanitize variables’ names to eliminate non-accepted characters (un-
der development).
• verbose – True/False, toggles verbose mode.
Mamdani_inference(terms=None, subdivisions=1000, aggregation_function=<built-in function
max>, ignore_errors=False, ignore_warnings=False, verbose=False)
Performs Mamdani fuzzy inference.
Parameters
• terms – list of the names of the variables on which inference must be performed.If empty,
all variables appearing in the consequent of a fuzzy rule are inferred.
• subdivisions – the number of integration steps to be performed for calculating fuzzy
set area (default: 1000).
• aggregation_function – pointer to function used to aggregate fuzzy sets during
Mamdani inference, default is max. Use Python sum function, or simpful’s probor function
for sum and probabilistic OR, respectively.
• ignore_errors – True/False, toggles the raising of errors during the inference.
• ignore_warnings – True/False, toggles the raising of warnings during the inference.
• verbose – True/False, toggles verbose mode.
Returns a dictionary, containing as keys the variables’ names and as values their numerical
inferred values.
Sugeno_inference(terms=None, ignore_errors=False, ignore_warnings=False, verbose=False)
Performs Sugeno fuzzy inference.
Parameters
• terms – list of the names of the variables on which inference must be performed. If
empty, all variables appearing in the consequent of a fuzzy rule are inferred.
• ignore_errors – True/False, toggles the raising of errors during the inference.
• ignore_warnings – True/False, toggles the raising of warnings during the inference.
• verbose – True/False, toggles verbose mode.
Returns a dictionary, containing as keys the variables’ names and as values their numerical
inferred values.
add_linguistic_variable(name, LV, verbose=False)
Adds a new linguistic variable to the fuzzy system.
Parameters
• name – string containing the name of the linguistic variable.

2 Chapter 1. A user-friendly Python library for fuzzy logic


Simpful

• LV – linguistic variable object to be added to the fuzzy system.


• verbose – True/False, toggles verbose mode.
add_rules(rules, verbose=False)
Adds new fuzzy rules to the fuzzy system.
Parameters
• rules – list of fuzzy rules to be added. Rules must be specified as strings, respecting
Simpful’s syntax.
• verbose – True/False, toggles verbose mode.
add_rules_from_file(path, verbose=False)
Imports new fuzzy rules by reading the strings from a text file.
Parameters
• path – path to the file containing the rules.
• verbose – True/False, toggles verbose mode.
aggregate(list_variables, function)
Performs a fuzzy aggregation of linguistic variables contained in a FuzzySystem object.
Parameters
• list_variables – list of linguistic variables names in the FuzzySystem object to ag-
gregate.
• function – pointer to an aggregation function. The function must accept as an argument
a list of membership values.
Returns the aggregated membership values.
get_firing_strengths(input_values=None)
If “input_values” is not provided, it returns a list of the firing strengths of the the rules, given the current
state of input variables. “input_values” is an optional argument, in the form of a dictionary containing a
list of input states for each variable. In this second case, it returns a 2D list of firing strengths of the given
states.
Parameters input_values – dictionary where the keys are names of linguistic variables and
the values are a list of input values for that variable.
Returns a list containing rules’ firing strengths, or a 2D list containing rules’ firing strengths for
each given input state.
get_fuzzy_set(variable_name, fs_name)
Returns a FuzzySet object associated to a linguistic variable.
Parameters
• variable_name – name of the linguistic variable.
• fs_name – linguistic term associated to the fuzzy set.
Returns a FuzzySet object.
get_fuzzy_sets(variable_name)
Returns the list of FuzzySet objects associated to one linguistic variable.
Parameters variable_name – name of the linguistic variable.
Returns a list containing FuzzySet objects.

1.2. Additional information 3


Simpful

get_rules()
Returns the rule base of the fuzzy system.
Returns a list containing the fuzzy rules as strings, in the same order they were added.
inference(terms=None, subdivisions=1000, aggregation_function=<built-in function max>, ig-
nore_errors=False, ignore_warnings=False, verbose=False)
Performs the fuzzy inference, trying to automatically choose the correct inference engine.
Parameters
• terms – list of the names of the variables on which inference must be performed. If
empty, all variables appearing in the consequent of a fuzzy rule are inferred.
• subdivisions – the number of integration steps to be performed for calculating fuzzy
set area (default: 1000).
• aggregation_function – pointer to function used to aggregate fuzzy sets during
Mamdani inference, default is max. Use Python sum function, or simpful’s probor function
for sum and probabilistic OR, respectively.
• ignore_errors – True/False, toggles the raising of errors during the inference.
• ignore_warnings – True/False, toggles the raising of warnings during the inference.
• verbose – True/False, toggles verbose mode.
Returns a dictionary, containing as keys the variables’ names and as values their numerical
inferred values.
plot_surface(variables, output, detail=40, color_map='plasma')
Plots the surface induced by the rules.
Parameters
• variables – a pair of linguistic variables for the x and y axis.
• output – the output variable to be computed.
• detail – number of subdivisions along each axis.
• color_map – the color map to be used for the plot.
Returns a matplotlib figure object.
plot_variable(var_name, outputfile='', TGT=None, element=None, highlight=None, ax=None, xs-
cale='linear')
Plots all fuzzy sets contained in a liguistic variable. Options for saving the figure and draw on a matplotlib
ax are provided.
Parameters
• var_name – string containing the name of the linguistic variable to plot.
• outputfile – string containing path and filename where the plot must be saved.
• TGT – (deprecated) show the memberships of a specific element of discourse TGT in the
figure.
• element – show the memberships of a specific element of discourse in the figure.
• highlight – string, indicating the linguistic term/fuzzy set to highlight in the plot.
• ax – a matplotlib ax where the variable will be plotted.
• xscale – default “linear”, supported scales “log”. Changes the scale of the xaxis.

4 Chapter 1. A user-friendly Python library for fuzzy logic


Simpful

produce_figure(outputfile='', max_figures_per_row=4, element_dict=None)


Plots the membership functions of each linguistic variable contained in the fuzzy system.
Parameters
• outputfile – string containing path and filename where the plot must be saved.
• max_figures_per_row – maximum number of figures per row in the plot.
• element_dict – dictionary of elements of the universe of discourse whose membership
must be plotted over the fuzzy sets.
replace_rule(i, new_rule, verbose=False)
Replaces the i-th rule in the FuzzySystem object. Rules are stored in the same order they were added.
Parameters
• i – index of the rule to be replaced in the fuzzy system.
• new_rule – fuzzy rule to be used for the replacement.
• verbose – True/False, toggles verbose mode.
set_constant(name, value, verbose=False)
Sets the numerical value of a linguistic variable to a constant value (i.e. ignore fuzzy inference).
Parameters
• name – name of the linguistic variables to be set to a constant value.
• value – numerical value to be set.
• verbose – True/False, toggles verbose mode.
set_crisp_output_value(name, value, verbose=False)
Adds a new crisp output value to the fuzzy system.
Parameters
• name – string containing the identifying name of the crisp output value.
• value – numerical value of the crisp output value to be added to the fuzzy system.
• verbose – True/False, toggles verbose mode.
set_output_function(name, function, verbose=False)
Adds a new output function to the fuzzy system.
Parameters
• name – string containing the identifying name of the output function.
• function – string containing the output function to be added to the fuzzy system. The
function specified in the string must use the names of linguistic variables contained in the
fuzzy system object.
• verbose – True/False, toggles verbose mode.
set_variable(name, value, verbose=False)
Sets the numerical value of a linguistic variable.
Parameters
• name – name of the linguistic variables to be set.
• value – numerical value to be set.
• verbose – True/False, toggles verbose mode.

1.2. Additional information 5


Simpful

class simpful.simpful.LinguisticVariable(FS_list=[], concept=None, uni-


verse_of_discourse=None)
Bases: object
Creates a new linguistic variable.
Parameters
• FS_list – a list of FuzzySet instances.
• concept – a string providing a brief description of the concept represented by the linguistic
variable (optional).
• universe_of_discourse – a list of two elements, specifying min and max of the
universe of discourse. Optional, but it must be specified to exploit plotting facilities.
draw(ax, TGT=None, element=None, highlight=None, xscale='linear')
This method returns a matplotlib ax, representing all fuzzy sets contained in the liguistic variable.
Parameters
• ax – the matplotlib axis to plot to.
• TGT – (deprecated) show the memberships of a specific element of discourse TGT in the
figure.
• element – show the memberships of a specific element of discourse in the figure.
• highlight – string, indicating the linguistic term/fuzzy set to highlight in the plot.
• xscale – default “linear”, supported scales “log”. Changes the scale of the xaxis.
Returns A matplotlib axis, representing all fuzzy sets contained in the liguistic variable.
get_universe_of_discourse()
This method provides the leftmost and rightmost values of the universe of discourse of the linguistic
variable.
Returns the two extreme values of the universe of discourse.
plot(outputfile='', TGT=None, element=None, highlight=None, xscale='linear')
Shows a plot representing all fuzzy sets contained in the liguistic variable.
Parameters
• outputfile – path and filename where the plot must be saved.
• TGT – (deprecated) show the memberships of a specific element of discourse TGT in the
figure.
• element – show the memberships of a specific element of discourse in the figure.
• highlight – string, indicating the linguistic term/fuzzy set to highlight in the plot.
• xscale – default “linear”, supported scales “log”. Changes the scale of the xaxis.
exception simpful.simpful.UndefinedUniverseOfDiscourseError(message)
Bases: Exception
simpful.simpful.probor(m_list)
Performs aggregation of membership values using the probabilistic OR operation.
Parameters m_list – list of membership values to aggregate.
Returns the aggregated membership value.
simpful.simpful.prod(m_list)
Performs aggregation of membership values using the product operation.

6 Chapter 1. A user-friendly Python library for fuzzy logic


Simpful

Parameters m_list – list of membership values to aggregate.


Returns the aggregated membership value.

1.2.2 fuzzy sets module

simpful.fuzzy_sets module

class simpful.fuzzy_sets.CrispSet(a, b, term)


Bases: simpful.fuzzy_sets.FuzzySet
Creates a new crisp set.
Parameters
• a – left extreme value of the set.
• b – right extreme value of the set.
• term – string representing the linguistic term to be associated to the crisp set.
set_params(a=None, b=None)
Changes parameters of the crisp set.
Parameters
• a – left extreme value of the set.
• b – right extreme value of the set.
class simpful.fuzzy_sets.Crisp_MF(a, b)
Bases: simpful.fuzzy_sets.MF_object
Creates a crisp membership function.
Parameters
• a – left extreme value of the set.
• b – right extreme value of the set.
class simpful.fuzzy_sets.DoubleGaussianFuzzySet(mu1, sigma1, mu2, sigma2, term)
Bases: simpful.fuzzy_sets.FuzzySet
Creates a new double Gaussian fuzzy set.
Parameters
• mu1 – mean of the first distribution.
• sigma1 – standard deviation of the first distribution.
• mu2 – mean of the second distribution.
• sigma2 – standard deviation of the second distribution.
• term – string representing the linguistic term to be associated to the fuzzy set.
set_params(mu1=None, sigma1=None, mu2=None, sigma2=None)
Changes parameters of the double Gaussian fuzzy set.
Parameters
• mu1 – mean of the first distribution.
• sigma1 – standard deviation of the first distribution.

1.2. Additional information 7


Simpful

• mu2 – mean of the second distribution.


• sigma2 – standard deviation of the second distribution.
class simpful.fuzzy_sets.DoubleGaussian_MF(mu1, sigma1, mu2, sigma2)
Bases: simpful.fuzzy_sets.MF_object
Creates a double Gaussian membership function.
Parameters
• mu1 – mean of the first distribution.
• sigma1 – standard deviation of the first distribution.
• mu2 – mean of the second distribution.
• sigma2 – standard deviation of the second distribution.
class simpful.fuzzy_sets.FuzzySet(points=None, function=None, term='',
high_quality_interpolate=False, boundary_values=None,
verbose=False)
Bases: object
Creates a new fuzzy set.
Parameters
• points – list of points to define a polygonal fuzzy sets. Each point is defined as a list of
two coordinates in the universe of discourse/membership degree space.
• function – function to define a non-polygonal fuzzy set. Supports pre-implemented
membership functions Sigmoid_MF, InvSigmoid_MF, Gaussian_MF, InvGaussian_MF,
DoubleGaussian_MF, Triangle_MF, Trapezoidal_MF or user-defined functions.
• term – string representing the linguistic term to be associated to the fuzzy set.
• high_quality_interpolate – True/False, toggles high quality interpolation for
point-based fuzzy sets. Default value is set to False.
• boundary_values – list of two membership values for point-based fuzzy sets. The first
and second value are used to fill in values at the left-side and right-side of the fuzzy set,
respectively. If None (default value), fuzzy sets will be considered as shouldered.
• verbose – True/False, toggles verbose mode.
get_term()
Return the linguistic term associated to this fuzzy set.
get_value(v)
Return the membership value of v to this Fuzzy Set.
Parameters v – element of the universe of discourse.
Returns The membership value of v to this Fuzzy Set.
get_value_cut(v, cut)
Return the membership value of v to this Fuzzy Set, capped to the cut value.
Parameters
• v – element of the universe of discourse.
• cut – alpha cut of the fuzzy set.
set_points(points)
Changes points of the point-based fuzzy set.

8 Chapter 1. A user-friendly Python library for fuzzy logic


Simpful

Parameters points – a list of points to define a polygonal fuzzy sets. Each point is defined as
a list of two coordinates in the universe of discourse/membership degree space.
class simpful.fuzzy_sets.GaussianFuzzySet(mu, sigma, term)
Bases: simpful.fuzzy_sets.FuzzySet
Creates a new Gaussian fuzzy set.
Parameters
• mu – mean of the distribution.
• sigma – standard deviation of the distribution.
• term – string representing the linguistic term to be associated to the fuzzy set.
set_params(mu=None, sigma=None)
Changes parameters of the Gaussian fuzzy set.
Parameters
• mu – mean of the distribution.
• sigma – standard deviation of the distribution.
class simpful.fuzzy_sets.Gaussian_MF(mu, sigma)
Bases: simpful.fuzzy_sets.MF_object
Creates a Gaussian membership function.
Parameters
• mu – mean of the distribution.
• sigma – standard deviation of the distribution.
class simpful.fuzzy_sets.InvGaussianFuzzySet(mu, sigma, term)
Bases: simpful.fuzzy_sets.FuzzySet
Creates a new inversed Gaussian fuzzy set.
Parameters
• mu – mean of the distribution.
• sigma – standard deviation of the distribution.
• term – string representing the linguistic term to be associated to the fuzzy set.
set_params(mu=None, sigma=None)
Changes parameters of the inversed Gaussian fuzzy set.
Parameters
• mu – mean of the distribution.
• sigma – standard deviation of the distribution.
class simpful.fuzzy_sets.InvGaussian_MF(mu, sigma)
Bases: simpful.fuzzy_sets.MF_object
Creates an inversed Gaussian membership function.
Parameters
• mu – mean of the distribution.
• sigma – standard deviation of the distribution.

1.2. Additional information 9


Simpful

class simpful.fuzzy_sets.InvSigmoidFuzzySet(c, a, term)


Bases: simpful.fuzzy_sets.FuzzySet
Creates a new inversed sigmoidal fuzzy set.
Parameters
• c – universe of discourse coordinate of inflection point.
• a – steepness of the curve.
• term – string representing the linguistic term to be associated to the fuzzy set.
set_params(c=None, a=None)
Changes parameters of the inversed sigmoidal fuzzy set.
Parameters
• c – universe of discourse coordinate of inflection point.
• a – steepness of the curve.
class simpful.fuzzy_sets.InvSigmoid_MF(c=0, a=1)
Bases: simpful.fuzzy_sets.MF_object
Creates an inversed sigmoid membership function.
Parameters
• c – universe of discourse coordinate of inflection point.
• a – steepness of the curve.
class simpful.fuzzy_sets.SigmoidFuzzySet(c, a, term)
Bases: simpful.fuzzy_sets.FuzzySet
Creates a new sigmoidal fuzzy set.
Parameters
• c – universe of discourse coordinate of inflection point.
• a – steepness of the curve.
• term – string representing the linguistic term to be associated to the fuzzy set.
set_params(c=None, a=None)
Changes parameters of the sigmoidal fuzzy set.
Parameters
• c – universe of discourse coordinate of inflection point.
• a – steepness of the curve.
class simpful.fuzzy_sets.Sigmoid_MF(c=0, a=1)
Bases: simpful.fuzzy_sets.MF_object
Creates a sigmoidal membership function.
Parameters
• c – universe of discourse coordinate of the inflection point.
• a – steepness of the curve.

10 Chapter 1. A user-friendly Python library for fuzzy logic


Simpful

class simpful.fuzzy_sets.SingletonsSet(pairs, term)


Bases: simpful.fuzzy_sets.FuzzySet
Creates a set composed of singletons.
Parameters
• pairs – a list of pairs [x, y], where x is an element of the universe of discourse and y its
membership degree.
• term – string representing the linguistic term to be associated to the singletons set.
set_params(pairs=None)
Changes the pairs of the singletons set.
Parameters pairs – a list of pairs [x, y], where x is an element of the universe of discourse
and y its membership degree.
class simpful.fuzzy_sets.Singletons_MF(pairs)
Bases: simpful.fuzzy_sets.MF_object
Creates a membership function composed of singletons.
Parameters pairs – a list of pairs [x, y], where x is an element of the universe of discourse and y
its membership degree.
class simpful.fuzzy_sets.TrapezoidFuzzySet(a, b, c, d, term)
Bases: simpful.fuzzy_sets.FuzzySet
Creates a new trapezoidal fuzzy set.
Parameters
• a – universe of discourse coordinate of the leftmost vertex.
• b – universe of discourse coordinate of the upper left vertex.
• c – universe of discourse coordinate of the upper right vertex.
• d – universe of discourse coordinate of the rightmost vertex.
• term – string representing the linguistic term to be associated to the fuzzy set.
set_params(a=None, b=None, c=None, d=None)
Changes parameters of the trapezoidal fuzzy set.
Parameters
• a – universe of discourse coordinate of the leftmost vertex.
• b – universe of discourse coordinate of the upper left vertex.
• c – universe of discourse coordinate of the upper right vertex.
• d – universe of discourse coordinate of the rightmost vertex.
class simpful.fuzzy_sets.Trapezoidal_MF(a=0, b=0.25, c=0.75, d=1)
Bases: simpful.fuzzy_sets.MF_object
Creates a normalized trapezoidal membership function. Requires a <= b <= c <= d.
Parameters
• a – universe of discourse coordinate of the leftmost vertex.
• b – universe of discourse coordinate of the upper left vertex.
• c – universe of discourse coordinate of the upper right vertex.

1.2. Additional information 11


Simpful

• d – universe of discourse coordinate of the rightmost vertex.


class simpful.fuzzy_sets.TriangleFuzzySet(a, b, c, term)
Bases: simpful.fuzzy_sets.FuzzySet
Creates a new triangular fuzzy set.
Parameters
• a – universe of discourse coordinate of the leftmost vertex.
• b – universe of discourse coordinate of the upper vertex.
• c – universe of discourse coordinate of the rightmost vertex.
• term – string representing the linguistic term to be associated to the fuzzy set.
set_params(a=None, b=None, c=None)
Changes parameters of the triangular fuzzy set.
Parameters
• a – universe of discourse coordinate of the leftmost vertex.
• b – universe of discourse coordinate of the upper vertex.
• c – universe of discourse coordinate of the rightmost vertex.
class simpful.fuzzy_sets.Triangular_MF(a=0, b=0.5, c=1)
Bases: simpful.fuzzy_sets.MF_object
Creates a normalized triangular membership function. Requires a <= b <= c and the semantics is the following:

1 | .
| / \
| / \
0 |/ \
---------
a b c

Parameters
• a – universe of discourse coordinate of the leftmost vertex.
• b – universe of discourse coordinate of the upper vertex.
• c – universe of discourse coordinate of the rightmost vertex.

1.2.3 fuzzy aggregation module

simpful.fuzzy_aggregation module

class simpful.fuzzy_aggregation.FuzzyAggregator(verbose=False)
Bases: object
Creates a new fuzzy aggregation object.
Parameters verbose – True/False, toggles verbose mode.
add_variables(*args)
Adds variables and their fuzzy sets to perform fuzzy aggregation.
Parameters *args – ‘FuzzySet’ objects, whose ‘term’ argument is the name of the variable.

12 Chapter 1. A user-friendly Python library for fuzzy logic


Simpful

aggregate(variables=None, aggregation_fun='product')
Performs fuzzy aggregation.
Parameters
• variables – list of variables names to be aggregated. If empty, all added variables are
aggregated.
• aggregation_fun – pointer to a fuzzy aggregation function or string name of an im-
plemented aggregation method. Default method is “product”. Currently implemented
methods: product, min, max, arit_mean
Returns Numerical result of the aggregation, as provided by the aggregation function.
set_variable(name, value)
Sets the numerical value of a variable to be aggregated.
Parameters
• name – name of the variables to be set.
• value – numerical value to be set.

1.2. Additional information 13


Simpful

14 Chapter 1. A user-friendly Python library for fuzzy logic


PYTHON MODULE INDEX

s
simpful.fuzzy_aggregation, 12
simpful.fuzzy_sets, 7
simpful.simpful, 1

15
Simpful

16 Python Module Index


INDEX

A get_rules() (simpful.simpful.FuzzySystem method),


add_linguistic_variable() (simp- 3
ful.simpful.FuzzySystem method), 2 get_term() (simpful.fuzzy_sets.FuzzySet method), 8
add_rules() (simpful.simpful.FuzzySystem method), get_universe_of_discourse() (simp-
3 ful.simpful.LinguisticVariable method), 6
add_rules_from_file() (simp- get_value() (simpful.fuzzy_sets.FuzzySet method), 8
ful.simpful.FuzzySystem method), 3 get_value_cut() (simpful.fuzzy_sets.FuzzySet
add_variables() (simp- method), 8
ful.fuzzy_aggregation.FuzzyAggregator
method), 12
I
aggregate() (simp- inference() (simpful.simpful.FuzzySystem method),
ful.fuzzy_aggregation.FuzzyAggregator 4
method), 12 InvGaussian_MF (class in simpful.fuzzy_sets), 9
aggregate() (simpful.simpful.FuzzySystem method), InvGaussianFuzzySet (class in simpful.fuzzy_sets),
3 9
AutoTriangle (class in simpful.simpful), 1 InvSigmoid_MF (class in simpful.fuzzy_sets), 10
InvSigmoidFuzzySet (class in simpful.fuzzy_sets), 9
C L
Crisp_MF (class in simpful.fuzzy_sets), 7
LinguisticVariable (class in simpful.simpful), 5
CrispSet (class in simpful.fuzzy_sets), 7

D M
Mamdani_inference() (simp-
DoubleGaussian_MF (class in simpful.fuzzy_sets), 8 ful.simpful.FuzzySystem method), 2
DoubleGaussianFuzzySet (class in simp- module
ful.fuzzy_sets), 7 simpful.fuzzy_aggregation, 12
draw() (simpful.simpful.LinguisticVariable method), 6 simpful.fuzzy_sets, 7
simpful.simpful, 1
F
FuzzyAggregator (class in simp- P
ful.fuzzy_aggregation), 12 plot() (simpful.simpful.LinguisticVariable method), 6
FuzzySet (class in simpful.fuzzy_sets), 8 plot_surface() (simpful.simpful.FuzzySystem
FuzzySystem (class in simpful.simpful), 1 method), 4
plot_variable() (simpful.simpful.FuzzySystem
G method), 4
Gaussian_MF (class in simpful.fuzzy_sets), 9 probor() (in module simpful.simpful), 6
GaussianFuzzySet (class in simpful.fuzzy_sets), 9 prod() (in module simpful.simpful), 6
get_firing_strengths() (simp- produce_figure() (simpful.simpful.FuzzySystem
ful.simpful.FuzzySystem method), 3 method), 4
get_fuzzy_set() (simpful.simpful.FuzzySystem
method), 3 R
get_fuzzy_sets() (simpful.simpful.FuzzySystem replace_rule() (simpful.simpful.FuzzySystem
method), 3 method), 5

17
Simpful

S U
set_constant() (simpful.simpful.FuzzySystem UndefinedUniverseOfDiscourseError, 6
method), 5
set_crisp_output_value() (simp-
ful.simpful.FuzzySystem method), 5
set_output_function() (simp-
ful.simpful.FuzzySystem method), 5
set_params() (simpful.fuzzy_sets.CrispSet method),
7
set_params() (simp-
ful.fuzzy_sets.DoubleGaussianFuzzySet
method), 7
set_params() (simpful.fuzzy_sets.GaussianFuzzySet
method), 9
set_params() (simp-
ful.fuzzy_sets.InvGaussianFuzzySet method),
9
set_params() (simp-
ful.fuzzy_sets.InvSigmoidFuzzySet method),
10
set_params() (simpful.fuzzy_sets.SigmoidFuzzySet
method), 10
set_params() (simpful.fuzzy_sets.SingletonsSet
method), 11
set_params() (simpful.fuzzy_sets.TrapezoidFuzzySet
method), 11
set_params() (simpful.fuzzy_sets.TriangleFuzzySet
method), 12
set_points() (simpful.fuzzy_sets.FuzzySet method),
8
set_variable() (simp-
ful.fuzzy_aggregation.FuzzyAggregator
method), 13
set_variable() (simpful.simpful.FuzzySystem
method), 5
Sigmoid_MF (class in simpful.fuzzy_sets), 10
SigmoidFuzzySet (class in simpful.fuzzy_sets), 10
simpful.fuzzy_aggregation
module, 12
simpful.fuzzy_sets
module, 7
simpful.simpful
module, 1
Singletons_MF (class in simpful.fuzzy_sets), 11
SingletonsSet (class in simpful.fuzzy_sets), 10
Sugeno_inference() (simpful.simpful.FuzzySystem
method), 2

T
Trapezoidal_MF (class in simpful.fuzzy_sets), 11
TrapezoidFuzzySet (class in simpful.fuzzy_sets), 11
TriangleFuzzySet (class in simpful.fuzzy_sets), 12
Triangular_MF (class in simpful.fuzzy_sets), 12

18 Index

You might also like