A fuzzy logic C++ library
|
A set of output membership functions. More...
#include <fuzzy_out.hpp>
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. |
A set of output membership functions.
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.
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.
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().