#include <fuzzy.h>
Public Member Functions | |
fuzzy () | |
fuzzy (float min1, float max1, int samples1) | |
~fuzzy () | |
void | setfunction (float f(float)) |
void | settriangle (float x1, float x2, float x3) |
void | settrapezoid (float x1, float x2, float x3, float x4) |
void | setconst (float c) |
void | setwell (float x1, float x2, float x3, float x4) |
void | setleft (float x1, float x2) |
void | setright (float x1, float x2) |
void | setvalues (float *v) |
void | setandz (fuzzy &f1, fuzzy &f2) |
void | setorz (fuzzy &f1, fuzzy &f2) |
void | setandp (fuzzy &f1, fuzzy &f2) |
void | setorp (fuzzy &f1, fuzzy &f2) |
void | setandl (fuzzy &f1, fuzzy &f2) |
void | setorl (fuzzy &f1, fuzzy &f2) |
void | setandz (fuzzy &f, float c) |
void | setorz (fuzzy &f, float c) |
void | setandp (fuzzy &f, float c) |
void | setorp (fuzzy &f, float c) |
void | setandl (fuzzy &f, float c) |
void | setorl (fuzzy &f, float c) |
float | value (float x) |
float | indexvalue (int index) |
float | centroid () |
float | bisector () |
float | mom () |
float | lom () |
float | hom () |
Private Attributes | |
float * | fx |
float | min |
float | max |
int | samples |
Definition at line 11 of file fuzzy.h.
fuzzy::fuzzy | ( | float | min1, | |
float | max1, | |||
int | samples1 | |||
) |
void fuzzy::setfunction | ( | float | f(float) | ) |
void fuzzy::settriangle | ( | float | x1, | |
float | x2, | |||
float | x3 | |||
) |
Definition at line 41 of file fuzzy.cpp.
References fx, max, min, and samples.
Referenced by cFuzzyObj::AddInputMF(), and cFuzzyObj::AddOutputMF().
void fuzzy::settrapezoid | ( | float | x1, | |
float | x2, | |||
float | x3, | |||
float | x4 | |||
) |
Definition at line 90 of file fuzzy.cpp.
References fx, max, min, and samples.
Referenced by cFuzzyObj::AddInputMF(), and cFuzzyObj::AddOutputMF().
void fuzzy::setconst | ( | float | c | ) |
Definition at line 22 of file fuzzy.cpp.
Referenced by cFuzzyObj::AddInputMF(), cFuzzyObj::AddOutputMF(), and cFuzzyObj::CountResult().
void fuzzy::setwell | ( | float | x1, | |
float | x2, | |||
float | x3, | |||
float | x4 | |||
) |
void fuzzy::setleft | ( | float | x1, | |
float | x2 | |||
) |
Definition at line 194 of file fuzzy.cpp.
References fx, max, min, and samples.
Referenced by cFuzzyObj::AddInputMF(), and cFuzzyObj::AddOutputMF().
void fuzzy::setright | ( | float | x1, | |
float | x2 | |||
) |
Definition at line 242 of file fuzzy.cpp.
References fx, max, min, and samples.
Referenced by cFuzzyObj::AddInputMF(), and cFuzzyObj::AddOutputMF().
void fuzzy::setvalues | ( | float * | v | ) |
Definition at line 296 of file fuzzy.cpp.
References fx, indexvalue(), and samples.
Referenced by cFuzzyObj::CountResult().
Definition at line 303 of file fuzzy.cpp.
References fx, indexvalue(), and samples.
Referenced by cFuzzyObj::CountResult().
Definition at line 310 of file fuzzy.cpp.
References fx, indexvalue(), and samples.
Referenced by cFuzzyObj::CountResult().
Definition at line 324 of file fuzzy.cpp.
References fx, indexvalue(), and samples.
Referenced by cFuzzyObj::CountResult().
void fuzzy::setandz | ( | fuzzy & | f, | |
float | c | |||
) |
void fuzzy::setorz | ( | fuzzy & | f, | |
float | c | |||
) |
void fuzzy::setandp | ( | fuzzy & | f, | |
float | c | |||
) |
void fuzzy::setorp | ( | fuzzy & | f, | |
float | c | |||
) |
void fuzzy::setandl | ( | fuzzy & | f, | |
float | c | |||
) |
void fuzzy::setorl | ( | fuzzy & | f, | |
float | c | |||
) |
float fuzzy::value | ( | float | x | ) |
float fuzzy::indexvalue | ( | int | index | ) |
float fuzzy::centroid | ( | ) |
float fuzzy::bisector | ( | ) |
float fuzzy::mom | ( | ) |
float fuzzy::lom | ( | ) |
float fuzzy::hom | ( | ) |
float* fuzzy::fx [private] |
Definition at line 14 of file fuzzy.h.
Referenced by bisector(), centroid(), fuzzy(), hom(), indexvalue(), lom(), mom(), setandl(), setandp(), setandz(), setconst(), setfunction(), setleft(), setorl(), setorp(), setorz(), setright(), settrapezoid(), settriangle(), setvalues(), setwell(), value(), and ~fuzzy().
float fuzzy::min [private] |
Definition at line 15 of file fuzzy.h.
Referenced by bisector(), centroid(), fuzzy(), hom(), lom(), mom(), setfunction(), setleft(), setright(), settrapezoid(), settriangle(), setwell(), and value().
float fuzzy::max [private] |
Definition at line 15 of file fuzzy.h.
Referenced by bisector(), centroid(), fuzzy(), hom(), lom(), mom(), setfunction(), setleft(), setright(), settrapezoid(), settriangle(), setwell(), and value().
int fuzzy::samples [private] |
Definition at line 16 of file fuzzy.h.
Referenced by bisector(), centroid(), fuzzy(), hom(), lom(), mom(), setandl(), setandp(), setandz(), setconst(), setfunction(), setleft(), setorl(), setorp(), setorz(), setright(), settrapezoid(), settriangle(), setvalues(), setwell(), and value().