A fuzzy logic C++ library
Public Member Functions
slifis::FUZZY_OUT Class Reference

A set of output membership functions. More...

#include <fuzzy_out.hpp>

+ Inheritance diagram for slifis::FUZZY_OUT:
+ Collaboration diagram for slifis::FUZZY_OUT:

List of all members.

Public Member Functions

 FUZZY_OUT (std::string name="output")
 Default constructor, see Sets of membership functions.
 FUZZY_OUT (const std::vector< REALVAL > &v_xval, std::string name="output")
 Constructor used for building automatically a set of triangular functions partitioning output space, using the given values in v.
 FUZZY_OUT (REALVAL vmin, REALVAL vmax, size_t NbFunc, EN_FUNCSPACING s=FS_LIN, std::string name="output")
 Constructor used for building automatically a set of triangular functions partitioning output space into Nb functions, going from vmin to vmax, regularly spaced.
bool operator== (const FUZZY_OUT &m) const
 Equality operator. Returns true if all the contained membership functions are equal.
bool operator!= (const FUZZY_OUT &m) const
bool SetIsValid () const
 Return true if the set of functions is valid.

Detailed Description

A set of output membership functions.


Constructor & Destructor Documentation

slifis::FUZZY_OUT::FUZZY_OUT ( std::string  name = "output")

Default constructor, see Sets of membership functions.

slifis::FUZZY_OUT::FUZZY_OUT ( const std::vector< REALVAL > &  v0,
std::string  name = "output" 
)

Constructor used for building automatically a set of triangular functions partitioning output space, using the given values in v.

see Sets of membership functions

References __IN__, __OUT__, slifis::FUZZY_ROOT::SetTriangularSet(), and SLIFIS_CATCH_RETHROW.

slifis::FUZZY_OUT::FUZZY_OUT ( REALVAL  vmin,
REALVAL  vmax,
size_t  NbFunc,
EN_FUNCSPACING  spacing = FS_LIN,
std::string  name = "output" 
)

Constructor used for building automatically a set of triangular functions partitioning output space into Nb functions, going from vmin to vmax, regularly spaced.

see Sets of membership functions

References __IN__, __OUT__, slifis::FUZZY_ROOT::SetTriangularSet(), and SLIFIS_CATCH_RETHROW.


Member Function Documentation

bool slifis::FUZZY_OUT::operator== ( const FUZZY_OUT f2) const

Equality operator. Returns true if all the contained membership functions are equal.

At present, calls the equality operator of inherited class FUZZY_ROOT

bool slifis::FUZZY_OUT::operator!= ( const FUZZY_OUT m) const [inline]
bool slifis::FUZZY_OUT::SetIsValid ( ) const [virtual]

Return true if the set of functions is valid.

  • the set has at least one function.
  • all the functions have left and right zero values.

Implements slifis::FUZZY_ROOT.

References __IN__, __OUT__, slifis::FUZZY_ROOT::GetMf(), slifis::FUZZY_ROOT::GetNbMf(), slifis::MEMBFUNC::IsFinite(), and slifis::FUZZY_ROOT::P_SetIsValid().

Referenced by slifis::SLIFIS::SetOutput().