ComposedFS Class Reference

A composed FuzzySet. More...

#include <ComposedFS.h>

Inheritance diagram for ComposedFS:

FuzzySet RCObject ComposedLT

List of all members.

Public Types

enum  Operator {
  MAX, MIN, PROD, PROBOR,
  USER, SIMPLIFY
}

Public Member Functions

 ComposedFS (Operator op, const RCPtr< FuzzySet > &f1, const RCPtr< FuzzySet > &f2)
 Constructor.
 ComposedFS (Operator op, const RCPtr< FuzzySet > &f1, const RCPtr< FuzzySet > &f2, double(*userFunction)(double, double))
 Constructor.
 ComposedFS (const ComposedFS &)
 Copy constructor.
void setOperator (Operator o)
 Sets the operator.
double getMin () const
 Returns the lower boundary of the support.
double getMax () const
 Returns the upper boundary of the support.


Detailed Description

A composed FuzzySet.

A composed FuzzySet makes it possible to do some calculations on fuzzy sets, e.g. to connect a constant fuzzy set and a sigmoid fuzzy set using the minimum fuction which would result in a sigmoid fuzzy set which is cutted at the value of the constant fuzzy set.

Definition at line 30 of file ComposedFS.h.


Member Enumeration Documentation

Enumerator:
MAX 
MIN 
PROD 
PROBOR 
USER 
SIMPLIFY 

Definition at line 32 of file ComposedFS.h.


Constructor & Destructor Documentation

ComposedFS::ComposedFS ( Operator  op,
const RCPtr< FuzzySet > &  f1,
const RCPtr< FuzzySet > &  f2 
)

Constructor.

Parameters:
op the operator used (e.g. MIN or MAX) to connect the fuzzy sets
f1 the first fuzzy set
f2 the second fuzzy set

Definition at line 24 of file ComposedFS.cpp.

ComposedFS::ComposedFS ( Operator  op,
const RCPtr< FuzzySet > &  f1,
const RCPtr< FuzzySet > &  f2,
double(*)(double, double)  userFunction 
)

Constructor.

Parameters:
op the operator used (e.g. MIN or MAX) to connect the fuzzy sets
f1 the first fuzzy set
f2 the second fuzzy set
userFunction the funcion connecting both fuzzy sets (a user definded operator which is used instead of one of the stanard operators)

Definition at line 15 of file ComposedFS.cpp.

ComposedFS::ComposedFS ( const ComposedFS rhs  )  [inline]

Copy constructor.

Definition at line 29 of file ComposedFS.cpp.


Member Function Documentation

double ComposedFS::getMax (  )  const [virtual]

Returns the upper boundary of the support.

Returns:
the max. value for which the membership function is nonzero (or exceeds a given threshold)

Implements FuzzySet.

Reimplemented in ComposedLT.

Definition at line 90 of file ComposedFS.cpp.

References MAX, MIN, PROBOR, PROD, and USER.

Referenced by ComposedLT::getMax().

double ComposedFS::getMin (  )  const [virtual]

Returns the lower boundary of the support.

Returns:
the min. value for which the membership function is nonzero (or exceeds a given threshold)

Implements FuzzySet.

Reimplemented in ComposedLT.

Definition at line 65 of file ComposedFS.cpp.

References MAX, MIN, PROBOR, PROD, and USER.

Referenced by ComposedLT::getMin().

void ComposedFS::setOperator ( Operator  o  )  [inline]

Sets the operator.

Parameters:
o the operator to be used to connect two fuzzy sets

Definition at line 78 of file ComposedFS.h.


The documentation for this class was generated from the following files: