Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

CNFSet Class Reference

CNFSet is the abstract base class for fuzzy set realizations. More...

#include <FSet.h>

Inheritance diagram for CNFSet::

CNNamed CNObject CNCL CNFSetArray CNFSetLR CNFSetTrapez CNFSetTriangle CNFNumTriangle List of all members.

Public Methods

virtual double get_membership (double x) const=0
 Gets the membership values for x.

virtual double center_of_gravity (double min, double max) const
 Computes the center of gravity for the defuzzyfication.

 CNFSet (CNParam *param)
 Initializes CNFSet with CNParam.

 CNFSet (double min=0, double max=1)
 Default Constructor.

 CNFSet (CNStringR xname, double min=FSET_MIN, double max=FSET_MAX)
 Initializes a CNFSet with xname as the object's name. More...

void init (CNStringR name, double min=FSET_MIN, double max=FSET_MAX)
 Initializes a CNFSet with name as the object's name. More...

virtual CNClassDesc class_desc () const
 Returns the class description (pointer to instance of CNClass) for runtime type information.

virtual bool is_a (CNClassDesc desc) const
 Checks Type.

virtual void print (ostream &strm=cout) const=0
 Print output.

virtual void dump (ostream &strm=cout) const=0
 Debug output.


Static Public Methods

CNFSet * cast_from_object (CNObject *obj)
 Safes type Cast.


Protected Attributes

double ymin
 Range of membership values.

double ymax
 Range of membership values.


Detailed Description

CNFSet is the abstract base class for fuzzy set realizations.


Constructor & Destructor Documentation

CNFSet::CNFSet CNStringR    xname,
double    min = FSET_MIN,
double    max = FSET_MAX
 

Initializes a CNFSet with xname as the object's name.

min and max determine the range of the membership values. FSET_MIN equals 0.0, FSET_MAX equals 1.0


Member Function Documentation

void CNFSet::init CNStringR    name,
double    min = FSET_MIN,
double    max = FSET_MAX
 

Initializes a CNFSet with name as the object's name.

min and max determine the range of the membership values. FSET_MIN equals 0.0, FSET_MAX equals 1.0


The documentation for this class was generated from the following file:
Generated on Fri Feb 1 19:55:15 2002 for CNCL by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001