Operation * is overloaded to do a fuzzy AND while the operator + is overloaded to do a fuzzy OR.
Public Member Functions | |
Fuzzy () | |
Fuzzy (double a) | |
void | setval (double a) |
double | getval () const |
bool | getBool () const |
Fuzzy | hedge (double gamma) |
void | linear (double x, double x0, double x1) |
void | inv (double x, double x0, double x1) |
void | tri (double x, double x0, double x1) |
Static Public Member Functions | |
static Fuzzy | avgVal (const std::vector< Fuzzy > &) |
static Fuzzy | andVal (const std::vector< Fuzzy > &) |
static Fuzzy | orVal (const std::vector< Fuzzy > &) |
static Fuzzy | aggregVal (const std::vector< Fuzzy > &) |
Friends | |
std::istream & | operator>> (std::istream &, Fuzzy &) |
std::ostream & | operator<< (std::ostream &, const Fuzzy &) |
Fuzzy | operator+ (const Fuzzy &, const Fuzzy &) |
Fuzzy | operator * (const Fuzzy &, const Fuzzy &) |
Fuzzy | operator- (const Fuzzy &) |
Fuzzy | operator+ (const Fuzzy &, const double &) |
Fuzzy | operator- (const Fuzzy &, const double &) |
bwer::Fuzzy::Fuzzy | ( | ) | [inline] |
bwer::Fuzzy::Fuzzy | ( | double | a | ) | [inline] |
bool bwer::Fuzzy::getBool | ( | ) | const [inline] |
double bwer::Fuzzy::getval | ( | ) | const [inline] |
Fuzzy bwer::Fuzzy::hedge | ( | double | gamma | ) |
void bwer::Fuzzy::inv | ( | double | x, | |
double | x0, | |||
double | x1 | |||
) |
void bwer::Fuzzy::linear | ( | double | x, | |
double | x0, | |||
double | x1 | |||
) |
void bwer::Fuzzy::setval | ( | double | a | ) | [inline] |
void bwer::Fuzzy::tri | ( | double | x, | |
double | x0, | |||
double | x1 | |||
) |
std::ostream& operator<< | ( | std::ostream & | , | |
const Fuzzy & | ||||
) | [friend] |
std::istream& operator>> | ( | std::istream & | , | |
Fuzzy & | ||||
) | [friend] |