#include <ZMF.h>
Inheritance diagram for IRIS::Fuzzy::ZMF:


Public Types | |
| typedef pair< double, double > | interval |
| typedef std::vector< double > | parm_list |
| type for list of parameters | |
| typedef vector< double > | vector |
| type for the vectorized form of this member function | |
Public Member Functions | |
| ZMF (double a=0, double b=0) | |
| ZMF (const string &name, double a=0, double b=0, double min=0, double max=0) | |
| ZMF (const MembershipFn::parm_list &parm) | |
| ~ZMF () | |
| destroy a membership function by releasing unneeded memory | |
| void | set (double a=0, double b=0) |
| virtual void | discretize (unsigned degree) |
| void | get (double &a, double &b) |
| virtual double | eval (double x) const |
| virtual double | operator() (double val) const |
| virtual void | draw () const |
| void | set (const string &name, double min, double max) |
| void | set (unsigned i, double val) |
| void | set (const string &name) |
| void | setMin (double newMin) |
| void | setMax (double newMax) |
| void | clear () |
| clears out a membership function | |
| void | get (string &name, double &min, double &max) const |
| void | get (double &min, double &max) const |
| interval | get () const |
| get the range of this set, described as an interval | |
| double | get (unsigned i) |
| gets the value of the ith parameter | |
| void | get (string &name) const |
| double | getMin () const |
| get the lower bound of the range of this set | |
| double | getMax () const |
| get the upper bound of the range of this set | |
| interval | dom () const |
| double & | operator[] (unsigned i) |
| sets the ith item in the vector of the member function | |
| double | operator[] (unsigned i) const |
| gets the ith item in the vector of the member function | |
| vector | getVector () const |
| void | setName (const string &name) |
| string | getName () const |
| get the name of this set | |
Static Public Attributes | |
| static const unsigned | NUM_PARMS = 2 |
| Z-shaped membership functions need two parameters. | |
Protected Attributes | |
| interval | range |
| parm_list | parameter |
| vector | x |
| string | name |
|
|
describe an interval as a pair indicating a lower bound and an upper bound |
|
|
type for list of parameters
|
|
|
type for the vectorized form of this member function
|
|
||||||||||||
|
create a Z-shaped membership function based on the given parameters a and b; default is a "zero" Z-shaped membership function
|
|
||||||||||||||||||||||||
|
create a Z-shaped membership function by naming it, setting parameters, and setting lower- and upper-bounds on its domain of values
|
|
|
create a Z-shaped membership function based on the given parameter list (with two parameters) |
|
|
destroy a membership function by releasing unneeded memory
|
|
|
clears out a membership function
Reimplemented from IRIS::Fuzzy::Numeric. |
|
|
Domain range is stored in range (see Set.h) Figure out step size for x values given the degree of discretization and the range of values in the domain Implements IRIS::Fuzzy::MembershipFn. |
|
|
get the domain of this set; same as get()
|
|
|
draw this set to see what it looks like; included primarily for debugging purposes ... Reimplemented from IRIS::Fuzzy::MembershipFn. |
|
|
evaluate a membership function based on the given x
Implements IRIS::Fuzzy::MembershipFn. |
|
|
get the name of this set; same as getName()
|
|
|
gets the value of the ith parameter
|
|
|
get the range of this set, described as an interval
|
|
||||||||||||
|
get the range for this set
|
|
||||||||||||||||
|
get the name and range for this set
|
|
||||||||||||
|
gets the value of all two parameters
|
|
|
get the upper bound of the range of this set
|
|
|
get the lower bound of the range of this set
|
|
|
get the name of this set
|
|
|
gets the vectorized form of a membership function based on the set level of discretization |
|
|
evaluate membership of the given value in this set
Implements IRIS::Fuzzy::MembershipFn. |
|
|
gets the ith item in the vector of the member function
|
|
|
sets the ith item in the vector of the member function
|
|
|
set the name for this set; same as setName()
|
|
||||||||||||
|
sets the ith parameter for this member function to val
|
|
||||||||||||||||
|
set the name and range for this set
|
|
||||||||||||
|
sets the two parameters of this member function to a and b
Reimplemented from IRIS::Fuzzy::MembershipFn. |
|
|
set the upper bound for the range for this set
|
|
|
set the lower bound for the range for this set
|
|
|
set the name for this set
|
|
|
|
|
|
Z-shaped membership functions need two parameters.
|
|
|
|
|
|
|
|
|
|
1.4.6