#include <pSigMF.h>
Inheritance diagram for IRIS::Fuzzy::pSigMF:
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 | |
pSigMF (double a=0, double b=0, double c=0, double d=0) | |
pSigMF (const string &name, double a=0, double b=0, double c=0, double d=0, double min=0, double max=0) | |
pSigMF (const MembershipFn::parm_list &parm) | |
~pSigMF () | |
destroy a membership function by releasing unneeded memory | |
void | set (double a=0, double b=0, double c=0, double d=0) |
virtual void | discretize (unsigned degree) |
void | get (double &a, double &b, double &c, double &d) |
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 (double newMin, double newMax) |
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 = 4 |
this type of membership function needs four 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 sigmoidal membership function based on the given parameters a and b; default is a "zero" sigmoidal membership function
|
|
create a product of two sigmoidally-shaped membership function by naming it, setting parameters, and setting lower- and upper-bounds on its domain of values
|
|
create a trapezoidal membership function based on the given parameter list (with four 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 four 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 range for this set
Reimplemented in IRIS::Fuzzy::GaussMF, IRIS::Fuzzy::SigMF, and IRIS::Fuzzy::ZMF. |
|
set the name and range for this set
|
|
sets the four parameters of this member function to a, b, c, and d
|
|
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
|
|
|
|
this type of membership function needs four parameters
|
|
|
|
|
|
|