#include <Fuzzy.h>
Collaboration diagram for Fuzzy:

Public Member Functions | |
| virtual void | assign (const float value) |
| Fuzzy () | |
| Fuzzy (const float value) | |
| virtual bool | IsAmbiguous () |
| virtual bool | IsFalse () |
| virtual bool | IsTrue () |
| Fuzzy | operator & (Fuzzy &f) |
| Fuzzy & | operator &= (Fuzzy &f) |
| operator bool () | |
| operator float () | |
| operator int () | |
| Fuzzy & | operator= (const float value) |
| Fuzzy | operator^ (Fuzzy &f) |
| Fuzzy & | operator^= (Fuzzy &f) |
| Fuzzy | operator| (Fuzzy &f) |
| Fuzzy & | operator|= (Fuzzy &f) |
| Fuzzy | operator~ () |
| virtual | ~Fuzzy () |
Protected Attributes | |
| float | _value |
|
|
Definition at line 21 of file Fuzzy.h. References assign().
00021 { assign(value); }
|
|
|
Definition at line 22 of file Fuzzy.h.
00022 { Fuzzy(0); }
|
|
|
Definition at line 23 of file Fuzzy.h.
00023 {}
|
|
|
Definition at line 88 of file Fuzzy.h. References _value. Referenced by Fuzzy(), and operator=().
|
|
|
Definition at line 38 of file Fuzzy.h.
00038 { return 0; }
|
|
|
Definition at line 37 of file Fuzzy.h. References _value.
00037 { return ( _value < 0.5 ); }
|
|
|
Definition at line 36 of file Fuzzy.h. References _value. Referenced by operator bool(), and operator int().
00036 { return ( _value >= 0.5 ); }
|
|
|
Definition at line 55 of file Fuzzy.h.
00055 {
00056 Fuzzy ftmp;
00057 ftmp = min( float(*this), float(f) );
00058 return ftmp;
00059 }
|
|
|
Definition at line 73 of file Fuzzy.h. References _value.
00073 {
00074 _value = min( _value, float(f) );
00075 return *this;
00076 }
|
|
|
Definition at line 26 of file Fuzzy.h. References IsTrue().
00026 { return IsTrue(); }
|
|
|
Definition at line 25 of file Fuzzy.h. References _value.
00025 { return _value; }
|
|
|
Definition at line 27 of file Fuzzy.h. References IsTrue().
00027 { return IsTrue(); }
|
|
|
Definition at line 43 of file Fuzzy.h. References assign().
00044 {
00045 assign(value);
00046 return *this;
00047 }
|
|
|
Definition at line 67 of file Fuzzy.h.
00067 {
00068 Fuzzy ftmp;
00069 ftmp = fabs( float(*this) - float(f) );
00070 return ftmp;
00071 }
|
|
|
Definition at line 83 of file Fuzzy.h. References _value.
00083 {
00084 _value = fabs( _value - float(f) );
00085 return *this;
00086 }
|
|
|
Definition at line 61 of file Fuzzy.h.
00061 {
00062 Fuzzy ftmp;
00063 ftmp = max( float(*this), float(f) );
00064 return ftmp;
00065 }
|
|
|
Definition at line 78 of file Fuzzy.h. References _value.
00078 {
00079 _value = max( _value, float(f) );
00080 return *this;
00081 }
|
|
|
Definition at line 49 of file Fuzzy.h.
00049 {
00050 Fuzzy ftmp;
00051 ftmp = 1.0 - float(*this);
00052 return ftmp;
00053 }
|
|
|
Definition at line 40 of file Fuzzy.h. Referenced by assign(), IsFalse(), IsTrue(), operator &=(), operator float(), operator^=(), and operator|=(). |
1.3.6