# bwer::Fuzzy Class Reference

List of all members.

## Detailed Description

A class for fuzzy arithmetic.

Operation * is overloaded to do a fuzzy AND while the operator + is overloaded to do a fuzzy OR.

Author:
Lakshman
Version:
Id
bwer_Fuzzy.h,v 1.4 2009/06/02 20:17:53 lakshman Exp

## 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 &)

## Constructor & Destructor Documentation

 bwer::Fuzzy::Fuzzy ( ) ` [inline]`

 bwer::Fuzzy::Fuzzy ( double a ) ` [inline]`

## Member Function Documentation

 static Fuzzy bwer::Fuzzy::aggregVal ( const std::vector< Fuzzy > & ) ` [static]`

 static Fuzzy bwer::Fuzzy::andVal ( const std::vector< Fuzzy > & ) ` [static]`

 static Fuzzy bwer::Fuzzy::avgVal ( const std::vector< Fuzzy > & ) ` [static]`

 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 )

 static Fuzzy bwer::Fuzzy::orVal ( const std::vector< Fuzzy > & ) ` [static]`

 void bwer::Fuzzy::setval ( double a ) ` [inline]`

 void bwer::Fuzzy::tri ( double x, double x0, double x1 )

## Friends And Related Function Documentation

 Fuzzy operator * ( const Fuzzy & , const Fuzzy & ) ` [friend]`

 Fuzzy operator+ ( const Fuzzy & , const double & ) ` [friend]`

 Fuzzy operator+ ( const Fuzzy & , const Fuzzy & ) ` [friend]`

 Fuzzy operator- ( const Fuzzy & , const double & ) ` [friend]`

 Fuzzy operator- ( const Fuzzy & ) ` [friend]`

 std::ostream& operator<< ( std::ostream & , const Fuzzy & ) ` [friend]`

 std::istream& operator>> ( std::istream & , Fuzzy & ) ` [friend]`

Generated on Fri May 4 13:40:21 2012 for WDSS-IIw2algs by  1.4.7