A fuzzy logic C++ library
|
Visual basic fuzzy test, see detailed description. More...
Functions | |
string | g_Wnd_activated_mf_set ("activated MF set") |
void | Mouse_CB (int event, int x, int, int, void *param) |
Common mouse callback. | |
void | Process (int x) |
int | main (int argc, char *argv[]) |
See demo1.cpp. | |
Variables | |
int | g_active = 0 |
active window | |
vector< PLOT_FS * > | g_plot |
table of pointers on plots of inputs | |
PLOT_FS * | g_pfout |
pointer on plot of output set of functions | |
vector< string > | g_WndName |
window names for inputs | |
std::vector< double > | g_real_x |
Input array. | |
SLIFIS * | gp_fis |
Visual basic fuzzy test, see detailed description.
If loading a inputs FIS, then windows will be opened:
string g_Wnd_activated_mf_set | ( | "activated MF set" | ) |
void Mouse_CB | ( | int | event, |
int | x, | ||
int | y, | ||
int | flags, | ||
void * | param | ||
) |
Common mouse callback.
void Process | ( | int | x | ) |
References __IN__, __OUT__, slifis::FUZZY_ROOT::AddMf(), slifis_plot::PLOT::AssignWindow(), slifis::MEMBFUNC::Defuzzify(), slifis_plot::PLOT_FUZZY::Draw(), slifis_plot::PLOT_MF::DrawValue(), g_active, g_pfout, g_plot, g_real_x, g_Wnd_activated_mf_set(), g_WndName, slifis_plot::GAPI_BuildColor(), slifis_plot::GAPI_ShowImage(), slifis::SLIFIS::GetNbInputs(), slifis::SLIFIS::GetOutMfVector(), slifis::SLIFIS::GetOutputMf(), slifis_plot::PLOT::GetPlotImage(), slifis::SLIFIS::GetRuleBase(), gp_fis, slifis::SLIFIS::SetInputValue(), slifis_plot::PLOT_FUZZY::SetScale(), and slifis_plot::PLOT::Show().
int main | ( | int | argc, |
char * | argv[] | ||
) |
See demo1.cpp.
References APP_NAME, APP_REGULAR_END, slifis_plot::PLOT::AssignWindow(), g_pfout, g_plot, g_real_x, g_Wnd_activated_mf_set(), g_WndName, slifis_plot::GAPI_AssignCallback(), slifis_plot::GAPI_CreateWindow(), slifis_plot::GAPI_MoveWindow(), slifis_plot::GAPI_WaitKey(), slifis::SLIFIS::GetInputName(), slifis::SLIFIS::GetInputSet(), slifis::SLIFIS::GetNbInputs(), slifis::SLIFIS::GetOutputSet(), slifis::SLIFIS::GetRuleBase(), gp_fis, Mouse_CB(), Process(), slifis::SLIFIS::Read(), and REOPEN_STDERR.
table of pointers on plots of inputs
Referenced by DrawDefuzz(), main(), and Process().