control
¶skfuzzy.control subpackage, providing a high-level API for fuzzy system design.
skfuzzy.control.Antecedent (universe, label) |
Antecedent (input/sensor) variable for a fuzzy control system. |
skfuzzy.control.Consequent (universe, label) |
Consequent (output/control) variable for a fuzzy control system. |
skfuzzy.control.ControlSystem ([rules]) |
Base class to contain a Fuzzy Control System. |
skfuzzy.control.ControlSystemSimulation (...) |
Calculate results from a ControlSystem. |
skfuzzy.control.Rule ([antecedent, ...]) |
Rule in a fuzzy control system, connecting antecedent(s) to consequent(s). |
Antecedent
¶skfuzzy.control.
Antecedent
(universe, label)[source]¶Bases: skfuzzy.control.fuzzyvariable.FuzzyVariable
Antecedent (input/sensor) variable for a fuzzy control system.
Parameters: | universe : array-like
label : string
|
---|
graph
¶NetworkX graph which connects this Antecedent with its Term(s).
input
¶Consequent
¶skfuzzy.control.
Consequent
(universe, label)[source]¶Bases: skfuzzy.control.fuzzyvariable.FuzzyVariable
Consequent (output/control) variable for a fuzzy control system.
Parameters: | universe : array-like
label : string
|
---|
Notes
The label
string chosen must be unique among Antecedents and
Consequents in the ControlSystem
.
graph
¶NetworkX graph which connects this Consequent with its Term(s).
output
¶ControlSystem
¶skfuzzy.control.
ControlSystem
(rules=None)[source]¶Bases: object
Base class to contain a Fuzzy Control System.
Parameters: | rules : Rule or iterable of Rules, optional
|
---|
antecedents
¶Generator which yields Antecedents in the system.
consequents
¶Generator which yields Consequents in the system.
fuzzy_variables
¶Generator which yields fuzzy variables in the system.
This includes Antecedents, Consequents, and Intermediaries.
rules
¶Generator which yields Rules in the system in calculation order.
ControlSystemSimulation
¶skfuzzy.control.
ControlSystemSimulation
(control_system, clip_to_bounds=True, cache=True, flush_after_run=1000)[source]¶Bases: object
Calculate results from a ControlSystem.
Parameters: | control_system : ControlSystem
clip_to_bounds : bool, optional
cache : bool, optional
flush_after_run : int, optional
|
---|
compute_rule
(rule)[source]¶Implement rule according to Mamdani inference.
Rule
¶skfuzzy.control.
Rule
(antecedent=None, consequent=None, label=None)[source]¶Bases: object
Rule in a fuzzy control system, connecting antecedent(s) to consequent(s).
Parameters: | antecedent : Antecedent term(s) or logical combination thereof, optional
consequent : Consequent term(s) or logical combination thereof, optional
label : string, optional
|
---|
Notes
Fuzzy Rules can be completely built on instantatiation or one can begin with an empty Rule and construct interactively by setting .antecedent, .consequent, and .label variables.
__init__
(antecedent=None, consequent=None, label=None)[source]¶Rule in a fuzzy system, connecting antecedent(s) to consequent(s).
Parameters: | antecedent : Antecedent term(s) or combination thereof, optional
consequent : Consequent term(s) or combination thereof, optional
label : string, optional
|
---|
aggregate_firing
¶antecedent
¶Antecedent clause, consisting of multiple term(s) in this fuzzy Rule.
antecedent_terms
¶Utility function to list all Antecedent terms present in this clause.
consequent
¶Consequent clause, consisting of multiple term(s) in this fuzzy Rule.
graph
¶NetworkX directed graph representing this Rule’s connectivity.