ComposedNDimFS Class Reference

A composed n-dimensional FuzzySet. More...

#include <ComposedNDimFS.h>

Inheritance diagram for ComposedNDimFS:

NDimFS RCObject

List of all members.

Public Member Functions

 ComposedNDimFS (const RCPtr< NDimFS > &nDimFS1, const RCPtr< NDimFS > &nDimFS2, double(*userFunction)(double, double))
 Constructor.
virtual double operator() (const std::vector< double > &v) const
 Membership ($\mu$) function.
double operator() (double a) const
 Membership ($\mu$) function for one-dimensional fuzzy set.
double operator() (double a, double b) const
 Membership ($\mu$) function for two-dimensional fuzzy set.
double operator() (double a, double b, double c) const
 Membership ($\mu$) function for three-dimensional fuzzy set.
double operator() (double a, double b, double c, double d) const
 Membership ($\mu$) function for four-dimensional fuzzy set.
 operator RCPtr< ComposedFS > ()
 Cast operator.
virtual unsigned getDimension () const
 Returns the dimension of a n-dimensional fuzzy set.


Detailed Description

A composed n-dimensional FuzzySet.

A composed n-dimensional fuzzy set makes it possible to do some calculations on n-dimensopnal fuzzy sets, e.g. to connect two n-dimensional fuzzy sets using the max-function.

Definition at line 24 of file ComposedNDimFS.h.


Constructor & Destructor Documentation

ComposedNDimFS::ComposedNDimFS ( const RCPtr< NDimFS > &  nDimFS1,
const RCPtr< NDimFS > &  nDimFS2,
double(*)(double, double)  userFunction 
)

Constructor.

Parameters:
nDimFS1 the first n-dimensional fuzzy set
nDimFS2 the secound n-dimensional fuzzy set
userFunction the function connecting both fuzzy sets

Definition at line 16 of file ComposedNDimFS.cpp.


Member Function Documentation

virtual unsigned ComposedNDimFS::getDimension (  )  const [inline, virtual]

Returns the dimension of a n-dimensional fuzzy set.

Returns:
the dimension of the fuzzy set.

Reimplemented from NDimFS.

Definition at line 98 of file ComposedNDimFS.h.

ComposedNDimFS::operator RCPtr< ComposedFS > (  ) 

Cast operator.

Casts the ComposedNDimFS to a ComposedFS if the dimension is equal to one.

Returns:
the ComposedFS

Definition at line 84 of file ComposedNDimFS.cpp.

References ComposedFS::USER.

double ComposedNDimFS::operator() ( double  a,
double  b,
double  c,
double  d 
) const

Membership ($\mu$) function for four-dimensional fuzzy set.

Parameters:
a the value $x_1$
b the value $x_2$
c the value $x_3$
d the value $x_4$
Returns:
the value of the membership fuction at $(x_1,x_2,x_3,x_4)$

Definition at line 54 of file ComposedNDimFS.cpp.

double ComposedNDimFS::operator() ( double  a,
double  b,
double  c 
) const

Membership ($\mu$) function for three-dimensional fuzzy set.

Parameters:
a the value $x_1$
b the value $x_2$
c the value $x_3$
Returns:
the value of the membership fuction at $(x_1,x_2,x_3)$

Definition at line 46 of file ComposedNDimFS.cpp.

double ComposedNDimFS::operator() ( double  a,
double  b 
) const

Membership ($\mu$) function for two-dimensional fuzzy set.

Parameters:
a the value $x_1$
b the value $x_2$
Returns:
the value of the membership fuction at $(x_1,x_2)$

Definition at line 39 of file ComposedNDimFS.cpp.

double ComposedNDimFS::operator() ( double  a  )  const

Membership ($\mu$) function for one-dimensional fuzzy set.

Parameters:
a the value $x$
Returns:
the value of the membership fuction at $x$

Definition at line 33 of file ComposedNDimFS.cpp.

double ComposedNDimFS::operator() ( const std::vector< double > &  v  )  const [virtual]

Membership ($\mu$) function.

Parameters:
v the vector of values $(x_1,\ldots,x_n)$
Returns:
the value of the membership fuction at $(x_1,\ldots,x_n)$

Implements NDimFS.

Definition at line 27 of file ComposedNDimFS.cpp.


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