IRIS::Fuzzy::Numeric Class Reference

#include <Numeric.h>

Inheritance diagram for IRIS::Fuzzy::Numeric:

Inheritance graph
[legend]
Collaboration diagram for IRIS::Fuzzy::Numeric:

Collaboration graph
[legend]
List of all members.

Public Types

typedef vector< double > vector
 type for the vectorized form of this member function

Public Member Functions

 Numeric ()
 create an empty membership function
 Numeric (const string &name)
 ~Numeric ()
 destroy a membership function by releasing unneeded memory
double & operator[] (unsigned i)
 sets the ith item in the vector of the member function
void clear ()
 clears out a membership function
virtual void discretize (unsigned degree)=0
double operator[] (unsigned i) const
 gets the ith item in the vector of the member function
vector getVector () const
virtual void draw () const
virtual double eval (double x) const =0
virtual double operator() (double val) const =0
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

vector x
string name

Detailed Description

A class interface for some of the most common, standard membership functions used in the fuzzy logic community; this version of a fuzzy set is numeric and vectorizable.


Member Typedef Documentation

typedef vector<double> IRIS::Fuzzy::Numeric::vector
 

type for the vectorized form of this member function


Constructor & Destructor Documentation

IRIS::Fuzzy::Numeric::Numeric  ) 
 

create an empty membership function

IRIS::Fuzzy::Numeric::Numeric const string &  name  ) 
 

create an empty set with an associated name

Parameters:
name name to give this set

IRIS::Fuzzy::Numeric::~Numeric  ) 
 

destroy a membership function by releasing unneeded memory


Member Function Documentation

void IRIS::Fuzzy::Numeric::clear  ) 
 

clears out a membership function

Reimplemented in IRIS::Fuzzy::MembershipFn.

virtual void IRIS::Fuzzy::Numeric::discretize unsigned  degree  )  [pure virtual]
 

discretize a membership function based on the given degree of discretization (number of elements in the vectorized form)

Parameters:
degree degree of discretization (or number of elements in the vectorized form of this membership function)

Implemented in IRIS::Fuzzy::BellMF, IRIS::Fuzzy::dSigMF, IRIS::Fuzzy::GaussMF, IRIS::Fuzzy::MembershipFn, IRIS::Fuzzy::pSigMF, IRIS::Fuzzy::SigMF, IRIS::Fuzzy::TrapMF, IRIS::Fuzzy::TriMF, and IRIS::Fuzzy::ZMF.

void IRIS::Fuzzy::Numeric::draw  )  const [virtual]
 

draw this set to see what it looks like; included primarily for debugging purposes ...

Implements IRIS::Fuzzy::Set.

Reimplemented in IRIS::Fuzzy::BellMF, IRIS::Fuzzy::dSigMF, IRIS::Fuzzy::GaussMF, IRIS::Fuzzy::MembershipFn, IRIS::Fuzzy::pSigMF, IRIS::Fuzzy::SigMF, IRIS::Fuzzy::TrapMF, IRIS::Fuzzy::TriMF, and IRIS::Fuzzy::ZMF.

virtual double IRIS::Fuzzy::Numeric::eval double  x  )  const [pure virtual]
 

evaluate a membership function based on the given x

Parameters:
x element of domain of membership function

Implemented in IRIS::Fuzzy::BellMF, IRIS::Fuzzy::dSigMF, IRIS::Fuzzy::GaussMF, IRIS::Fuzzy::MembershipFn, IRIS::Fuzzy::pSigMF, IRIS::Fuzzy::SigMF, IRIS::Fuzzy::TrapMF, IRIS::Fuzzy::TriMF, and IRIS::Fuzzy::ZMF.

void IRIS::Fuzzy::Set::get string &  name  )  const [inherited]
 

get the name of this set; same as getName()

Parameters:
name name given this set
See also:
getName()

string IRIS::Fuzzy::Set::getName  )  const [inherited]
 

get the name of this set

Numeric::vector IRIS::Fuzzy::Numeric::getVector  )  const
 

gets the vectorized form of a membership function based on the set level of discretization

virtual double IRIS::Fuzzy::Numeric::operator() double  val  )  const [pure virtual]
 

evaluate membership of the given value in this set

Parameters:
val value to use when evaluating this set

Implemented in IRIS::Fuzzy::BellMF, IRIS::Fuzzy::dSigMF, IRIS::Fuzzy::GaussMF, IRIS::Fuzzy::MembershipFn, IRIS::Fuzzy::pSigMF, IRIS::Fuzzy::SigMF, IRIS::Fuzzy::TrapMF, IRIS::Fuzzy::TriMF, and IRIS::Fuzzy::ZMF.

double IRIS::Fuzzy::Numeric::operator[] unsigned  i  )  const
 

gets the ith item in the vector of the member function

double & IRIS::Fuzzy::Numeric::operator[] unsigned  i  ) 
 

sets the ith item in the vector of the member function

void IRIS::Fuzzy::Set::set const string &  name  )  [inherited]
 

set the name for this set; same as setName()

Parameters:
name name to give this set
See also:
setName()

void IRIS::Fuzzy::Set::setName const string &  name  )  [inherited]
 

set the name for this set

Parameters:
name name to give this set


Member Data Documentation

string IRIS::Fuzzy::Set::name [protected, inherited]
 

vector IRIS::Fuzzy::Numeric::x [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Dec 12 13:42:35 2006 for IRIS Intelligent Systems Tools by  doxygen 1.4.6