![]() |
A fuzzy logic C++ library
|
Graphical demo of defuzzifying and unary operations (complement, alpha-cut, truncate, scale) on membership functions. More...
Include dependency graph for demo3.cpp:Defines | |
| #define | MIN_PIXEL_DIST 3 |
| minimum pixel distance between mouse and point to grab the point | |
Functions | |
| void | Mouse_CB (int event, int x, int y, int, void *) |
| Mouse CallBack. | |
| void | DrawDefuzz () |
| int | main (int, char *argv[]) |
| See demo3.cpp. | |
Variables | |
| int | g_method = DF_COG |
| MEMBFUNC | g_mf (MF_LL,"demo3", 10.0, 30.0, 60.0, 100.0) |
| PLOT_MF | g_plot |
| bool | g_MovingMode = false |
| double | g_threshold = 0.5 |
| size_t | g_unary = 0 |
Graphical demo of defuzzifying and unary operations (complement, alpha-cut, truncate, scale) on membership functions.
| #define MIN_PIXEL_DIST 3 |
minimum pixel distance between mouse and point to grab the point
| void Mouse_CB | ( | int | event, |
| int | x, | ||
| int | y, | ||
| int | flags, | ||
| void * | param | ||
| ) |
Mouse CallBack.
| void DrawDefuzz | ( | ) |
References __IN__, __OUT__, slifis::MEMBFUNC::AlphaCut(), slifis::MEMBFUNC::Defuzzify(), slifis_plot::PLOT_FUZZY::Draw(), slifis::MEMBFUNC::Fuzzify(), g_method, g_mf, g_plot, g_threshold, g_unary, slifis_plot::GAPI_BuildColor(), slifis_plot::GAPI_DrawLine(), slifis_plot::GAPI_ShowImage(), slifis::MEMBFUNC::GetFirstPoint(), slifis::MEMBFUNC::GetLastPoint(), slifis_plot::PLOT::GetPlotImage(), slifis::FPOINT::GetX(), slifis_plot::PLOT_FUZZY::SetScale(), and SLIFIS_WARNING.
Referenced by main().
| int main | ( | int | , |
| char * | argv[] | ||
| ) |
See demo3.cpp.
References slifis::MEMBFUNC::AddPoint(), APP_MSG, APP_NAME, APP_REGULAR_END, slifis::MEMBFUNC::Clear(), slifis::MEMBFUNC::DeletePoint(), slifis::DF_DUMMY, DrawDefuzz(), g_method, g_mf, g_plot, g_threshold, g_unary, slifis_plot::GAPI_AssignCallback(), slifis_plot::GAPI_CreateWindow(), slifis_plot::GAPI_MoveWindow(), slifis_plot::GAPI_WaitKey(), slifis::MEMBFUNC::GetNbPoints(), slifis::GetString(), slifis::MF_LL, slifis::MF_TRI, Mouse_CB(), REOPEN_STDERR, and slifis::MEMBFUNC::Set().
| int g_method = DF_COG |
Referenced by DrawDefuzz(), and main().
Referenced by DrawDefuzz(), and main().
| bool g_MovingMode = false |
| double g_threshold = 0.5 |
Referenced by DrawDefuzz(), and main().
| size_t g_unary = 0 |
Referenced by DrawDefuzz(), and main().
1.7.6.1