#include <MembershipFn.h>
Inheritance diagram for IRIS::Fuzzy::MembershipFn:
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 | |
MembershipFn () | |
create an empty membership function | |
MembershipFn (const parm_list &parm) | |
MembershipFn (const string &name) | |
MembershipFn (const string &name, double min, double max) | |
~MembershipFn () | |
destroy a membership function by releasing unneeded memory | |
void | set (const string &name, double min, double max) |
void | set (double newMin, double newMax) |
void | setMin (double newMin) |
void | setMax (double newMax) |
void | set (unsigned i, double val) |
void | clear () |
clears out a membership function | |
virtual void | discretize (unsigned degree)=0 |
void | get (string &name, double &min, double &max) const |
void | get (double &min, double &max) 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 | get () const |
get the range of this set, described as an interval | |
interval | dom () const |
double | get (unsigned i) |
gets the value of the ith parameter | |
virtual void | draw () const |
virtual double | eval (double x) const =0 |
virtual double | operator() (double val) const =0 |
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) |
void | set (const string &name) |
string | getName () const |
get the name of this set | |
void | get (string &name) const |
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 an empty membership function
|
|
create an membership function with the given parameter list
|
|
create an empty set with an associated name
|
|
create an empty set with an associated name and a range defined by the interval min ... max
|
|
destroy a membership function by releasing unneeded memory
|
|
clears out a membership function
Reimplemented from IRIS::Fuzzy::Numeric. |
|
discretize a membership function based on the given degree of discretization (number of elements in the vectorized form)
Implements IRIS::Fuzzy::Numeric. Implemented in IRIS::Fuzzy::BellMF, IRIS::Fuzzy::dSigMF, IRIS::Fuzzy::GaussMF, IRIS::Fuzzy::pSigMF, IRIS::Fuzzy::SigMF, IRIS::Fuzzy::TrapMF, IRIS::Fuzzy::TriMF, and IRIS::Fuzzy::ZMF. |
|
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::Numeric. Reimplemented in IRIS::Fuzzy::BellMF, IRIS::Fuzzy::dSigMF, IRIS::Fuzzy::GaussMF, IRIS::Fuzzy::pSigMF, IRIS::Fuzzy::SigMF, IRIS::Fuzzy::TrapMF, IRIS::Fuzzy::TriMF, and IRIS::Fuzzy::ZMF. |
|
evaluate a membership function based on the given x
Implements IRIS::Fuzzy::Numeric. Implemented in IRIS::Fuzzy::BellMF, IRIS::Fuzzy::dSigMF, IRIS::Fuzzy::GaussMF, IRIS::Fuzzy::pSigMF, IRIS::Fuzzy::SigMF, IRIS::Fuzzy::TrapMF, IRIS::Fuzzy::TriMF, and IRIS::Fuzzy::ZMF. |
|
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
|
|
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::Numeric. Implemented in IRIS::Fuzzy::BellMF, IRIS::Fuzzy::dSigMF, IRIS::Fuzzy::GaussMF, IRIS::Fuzzy::pSigMF, IRIS::Fuzzy::SigMF, IRIS::Fuzzy::TrapMF, IRIS::Fuzzy::TriMF, and IRIS::Fuzzy::ZMF. |
|
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 range for this set
Reimplemented in IRIS::Fuzzy::GaussMF, IRIS::Fuzzy::SigMF, and IRIS::Fuzzy::ZMF. |
|
set the name and range for this set
|
|
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
|
|
|
|
|
|
|
|
|